/// <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; }
public Roles() { _presenter = Injector.Current.Resolve <IRolePresenter>(); _presenter.SetViewModel(this); }
public RolesController(IMediator mediator, IRolePresenter presenter) { _mediator = mediator; _presenter = presenter; }