public CustomerAuthMiddleware(RequestDelegate next, IMemoryCache cache, IAuthenticationSchemeProvider schemes, ICustomerLogging logger)
 {
     this.next = next;
     _cache = cache;
     Schemes = schemes;
     _logger = logger;
 }
示例#2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="mapper"></param>
 /// <param name="postGroupRepository"></param>
 /// <param name="bus"></param>
 /// <param name="logger"></param>
 public PostGroupServer(IMapper mapper, IUnitOfWork uow, IMediatorHandler bus, ICustomerLogging logger)
 {
     _mapper = mapper;
     _postGroupRepository = uow.GetRepository <PostSeries>();
     Bus     = bus;
     _logger = logger;
 }
示例#3
0
 public AccountController(UserManager <AppBlogUser> userManager, RoleManager <AppBlogRole> roleManager, SignInManager <AppBlogUser> signInManager, ICustomerLogging logger, JwtHelper JwtHelper)
 {
     _userManager   = userManager;
     _roleManager   = roleManager;
     _signInManager = signInManager;
     _logger        = logger;
     _JwtHelper     = JwtHelper;
 }
示例#4
0
 public BaseController(UserManager <AppBlogUser> userManager, RoleManager <AppBlogRole> roleManager, SignInManager <AppBlogUser> signInManager, INotificationHandler <DomainNotification> notifications, ICustomerLogging logger)
 {
     _userManager   = userManager;
     _roleManager   = roleManager;
     _signInManager = signInManager;
     _notifications = (DomainNotificationHandler)notifications;
     _logger        = logger;
 }
示例#5
0
 public ExceptionController(
     UserManager <AppBlogUser> userManager,
     RoleManager <AppBlogRole> roleManager,
     SignInManager <AppBlogUser> signInManager,
     INotificationHandler <DomainNotification> notifications,
     ICustomerLogging _logger)
     : base(userManager, roleManager, signInManager, notifications, _logger)
 {
 }
示例#6
0
 public ArticleService(
     IMapper mapper,
     IMediatorHandler bus,
     ICustomerLogging logger, IUnitOfWork uow)
 {
     _mapper            = mapper;
     Bus                = bus;
     _logger            = logger;
     _articleRepository = uow.GetRepository <Article>();
 }
 public AccountController(UserManager <AppBlogUser> userManager, RoleManager <AppBlogRole> roleManager, SignInManager <AppBlogUser> signInManager, ICustomerLogging logger, IDBHelper dbHelper, IUser user, IMemoryCache memoryCache)
 {
     _userManager   = userManager;
     _roleManager   = roleManager;
     _signInManager = signInManager;
     _logger        = logger;
     _dbHelper      = dbHelper;
     _user          = user;
     _memoryCache   = memoryCache;
 }
 public HomeController(
     IArticleService articleService,
     UserManager <AppBlogUser> userManager,
     RoleManager <AppBlogRole> roleManager,
     SignInManager <AppBlogUser> signInManager,
     INotificationHandler <DomainNotification> notifications,
     ICustomerLogging _logger)
     : base(userManager, roleManager, signInManager, notifications, _logger)
 {
     _articleService = articleService;
 }
 public AdminController(UserManager <AppBlogUser> userManager,
                        RoleManager <AppBlogRole> roleManager,
                        SignInManager <AppBlogUser> signInManager,
                        INotificationHandler <DomainNotification> notifications,
                        IArticleService articleService,
                        ICustomerLogging logger)
 {
     _userManager    = userManager;
     _roleManager    = roleManager;
     _signInManager  = signInManager;
     _notifications  = (DomainNotificationHandler)notifications;
     _logger         = logger;
     _articleService = articleService;
 }
示例#10
0
 public UserController(
     IArticleService articleService,
     IPostGroupServer postGroupServer,
     UserManager <AppBlogUser> userManager,
     RoleManager <AppBlogRole> roleManager,
     SignInManager <AppBlogUser> signInManager,
     INotificationHandler <DomainNotification> notifications,
     IUser user, ICustomerLogging _logger)
     : base(userManager, roleManager, signInManager, notifications, _logger)
 {
     _articleService  = articleService;
     _postGroupServer = postGroupServer;
     _user            = user;
 }