コード例 #1
0
 /// <summary>
 /// 依赖注入构造器
 /// </summary>
 /// <param name="rolePresenter">角色呈现器接口</param>
 /// <param name="systemPresenter">信息系统呈现器接口</param>
 /// <param name="authorityPresenter">权限呈现器接口</param>
 /// <param name="authorizationContract">权限服务接口</param>
 public RoleController(IRolePresenter rolePresenter, IInfoSystemPresenter systemPresenter, IAuthorityPresenter authorityPresenter, IAuthorizationContract authorizationContract)
 {
     this._rolePresenter         = rolePresenter;
     this._systemPresenter       = systemPresenter;
     this._authorityPresenter    = authorityPresenter;
     this._authorizationContract = authorizationContract;
 }
コード例 #2
0
 public Roles()
 {
     _presenter = Injector.Current.Resolve <IRolePresenter>();
     _presenter.SetViewModel(this);
 }
コード例 #3
0
 public RolesController(IMediator mediator, IRolePresenter presenter)
 {
     _mediator  = mediator;
     _presenter = presenter;
 }