public CurrentUserOwinHandler(AppFunc next, IAuthManagerService authManagerService) { if (next == null) { throw new ArgumentNullException("next"); } _authManagerService = authManagerService; _next = next; }
public AuthController(IAuthManagerService authRepository) { _authRepository = authRepository; }
public UsersController(ILogger logger, IDataContext dataContext, IAuthManagerService authManagerService) { _logger = logger; _dataContext = dataContext; _authManagerService = authManagerService; }
public static void UseCustomCurrentUserHandler(this IAppBuilder app, IAuthManagerService authManagerService) { app.Use <CurrentUserOwinHandler>(authManagerService); }