Ejemplo n.º 1
0
        public CurrentUserOwinHandler(AppFunc next, IAuthManagerService authManagerService)
        {
            if (next == null)
            {
                throw new ArgumentNullException("next");
            }

            _authManagerService = authManagerService;
            _next = next;
        }
Ejemplo n.º 2
0
 public AuthController(IAuthManagerService authRepository)
 {
     _authRepository = authRepository;
 }
Ejemplo n.º 3
0
 public UsersController(ILogger logger, IDataContext dataContext, IAuthManagerService authManagerService)
 {
     _logger             = logger;
     _dataContext        = dataContext;
     _authManagerService = authManagerService;
 }
Ejemplo n.º 4
0
 public static void UseCustomCurrentUserHandler(this IAppBuilder app, IAuthManagerService authManagerService)
 {
     app.Use <CurrentUserOwinHandler>(authManagerService);
 }