1

我有一个带有一堆不同模块的 WPF Prism 应用程序,并且最终用户定义了不同的角色。我正在寻找一种可以根据用户角色加载模块的方法?

4

1 回答 1

2

One approach is to populate the ModuleCatalog based on the UserRoles. One would do this in the Bootstrapper by overriding: protected virtual IModuleCatalog GetModuleCatalog(); Another extensibility point are: protected override void ConfigureContainer();

Dig into the startup sequence of your application and the Bootstrapper, for other ideas can be found there.

于 2012-05-17T03:57:18.653 回答