public UserController(IUserApplicationService service, IPersonApplicationService servicePerson, IRoleApplicationService serviceRole, IAddressApplicationService serviceAddress, IPhoneApplicationService servicePhone) { this._service = service; this._servicePerson = servicePerson; this._serviceRole = serviceRole; this._serviceAddress = serviceAddress; this._servicePhone = servicePhone; }
public UserController(IUserApplicationService service, IPersonApplicationService servicePerson, IRoleApplicationService serviceRole, IAddressApplicationService serviceAddress, IPhoneApplicationService servicePhone) { this._service = service; this._servicePerson = servicePerson; this._serviceRole = serviceRole; this._serviceAddress = serviceAddress; this._servicePhone = servicePhone; }
public void SetUp() { _roleService = IoC.Resolve <IRoleApplicationService>(); using (var uow = IoC.Resolve <IUnitOfWork>()) { RoleInitialDataBuilder.Build(uow); } }
public void SetUp() { base.SetUp(); _sessionFactory = ApplicationContext.Current["NHibernateSessionFactory"] as ISessionFactory; _audienceApplicationService = ApplicationContext.Current["AudienceApplicationService"] as IAudienceApplicationService; _userApplicationService = ApplicationContext.Current["UserApplicationService"] as IUserApplicationService; _roleApplicationService = ApplicationContext.Current["RoleApplicationService"] as IRoleApplicationService; _permissionApplicationService = ApplicationContext.Current["PermissionApplicationService"] as IPermissionApplicationService; _rolePermissionApplicationService = ApplicationContext.Current["RolePermissionApplicationService"] as IRolePermissionApplicationService; }
public void ConfigureOAuth(IAppBuilder app, IUserApplicationService userService, IRoleApplicationService roleService) { //app.CreatePerOwinContext(AppDataContext.Create); //app.CreatePerOwinContext<ApplicationUserManager>(ApplicationUserManager.Create); OAuthAuthorizationServerOptions OAuthServerOptions = new OAuthAuthorizationServerOptions() { AllowInsecureHttp = true, TokenEndpointPath = new PathString("/api/security/token"), AccessTokenExpireTimeSpan = TimeSpan.FromDays(2), Provider = new SimpleAuthorizationServerProvider(userService, roleService) }; // Token Generation app.UseOAuthAuthorizationServer(OAuthServerOptions); app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions()); }
public SimpleAuthorizationServerProvider(IUserApplicationService userService, IRoleApplicationService roleService) { this._userService = userService; this._roleService = roleService; }
public RoleController(IRoleApplicationService roleApplicationService) { _roleApplicationService = roleApplicationService; }
public SimpleAuthorizationServerProvider(IUserApplicationService userService, IRoleApplicationService roleService) { this._userService = userService; this._roleService = roleService; }
public void ConfigureOAuth(IAppBuilder app, IUserApplicationService userService, IRoleApplicationService roleService) { //app.CreatePerOwinContext(AppDataContext.Create); //app.CreatePerOwinContext<ApplicationUserManager>(ApplicationUserManager.Create); OAuthAuthorizationServerOptions OAuthServerOptions = new OAuthAuthorizationServerOptions() { AllowInsecureHttp = true, TokenEndpointPath = new PathString("/api/security/token"), AccessTokenExpireTimeSpan = TimeSpan.FromDays(2), Provider = new SimpleAuthorizationServerProvider(userService, roleService) }; // Token Generation app.UseOAuthAuthorizationServer(OAuthServerOptions); app.UseOAuthBearerAuthentication(new OAuthBearerAuthenticationOptions()); }
public HomeController(IRoleApplicationService _roleSerivce) { this.roleService = _roleSerivce; }
public HomeController(IUserApplicationService serviceUser, IRoleApplicationService serviceRole) { this._serviceUser = serviceUser; this._serviceRole = serviceRole; }
public UserStore(IUnitOfWork unitOfWork, IUserApplicationService userApplicationService, IRoleApplicationService roleApplicationService) { _unitOfWork = unitOfWork; _userApplicationService = userApplicationService; _roleApplicationService = roleApplicationService; }
public RoleController(IRoleApplicationService applicationService) { this.applicationService = applicationService; }
public RoleController(IRoleApplicationService applicationService) { this.applicationService = applicationService; }
public PermissionsController(IRoleApplicationService roleApplicationService, IUserApplicationService userApplicationService, IDomainNotificationHandler domainNotificationHandler) : base(domainNotificationHandler) { _roleApplicationService = roleApplicationService; _userApplicationService = userApplicationService; }
public HomeController(IUserApplicationService serviceUser, IRoleApplicationService serviceRole) { this._serviceUser = serviceUser; this._serviceRole = serviceRole; }
public static IEnumerable <IRoleState> GetByProperty <TPropertyType>(this IRoleApplicationService applicationService, System.Linq.Expressions.Expression <Func <IRoleState, TPropertyType> > propertySelector, TPropertyType propertyValue, IList <string> orders = null, int firstResult = 0, int maxResults = int.MaxValue) { return(applicationService.GetByProperty(ReflectUtils.GetPropertyName <IRoleState, TPropertyType>(propertySelector), propertyValue, orders, firstResult, maxResults)); }