public UsersController(ICustomAuthentication authentication, IUserService userService, IBidService bidService, ILotService lotService) : base(authentication) { _customAuthentication = authentication; _userService = userService; _bidService = bidService; _lotService = lotService; }
public UsersController(ICustomAuthentication authentication, IUserService userService,IBidService bidService,ILotService lotService) :base(authentication) { _customAuthentication = authentication; _userService = userService; _bidService = bidService; _lotService = lotService; }
public ExternalUserController(IExternalUserRepository repository, IMapper mapper, ICustomAuthentication authentication, IExternalUserService externalUserService) { this.repository = repository; this.mapper = mapper; this.authentication = authentication; this.externalUserService = externalUserService; }
public ExternalUserService( IExternalUserRepository repository, IMapper mapper, IOptions <GlobalConfig> options, ICustomAuthentication authentication ) { this.repository = repository; this.mapper = mapper; this.globalConfig = options.Value; this.authentication = authentication; }
public static void CreateAuthentication(CustomAuthType key, TimeSpan expireTime) { switch (key) { case CustomAuthType.Cookie: CustomAuthentication = new CookieAuthentication { ExpireTime = expireTime }; break; case CustomAuthType.Jwt: CustomAuthentication = new JwtAuthentication { ExpireTime = expireTime }; break; default: CustomAuthentication = new DefaultAuthentication { ExpireTime = expireTime }; break; } }
public BaseController(ICustomAuthentication customAuthentication) { _customAuthentication = customAuthentication; }
public AccountController(ICustomAuthentication authentication,IUserService userService):base(authentication) { _customAuthentication = authentication; _userService = userService; }
public AccountController(ICustomAuthentication authentication, IUserService userService) : base(authentication) { _customAuthentication = authentication; _userService = userService; }
/// <summary> /// Constructor to initialize the member variables /// </summary> /// <param name="adminService">admin Service</param> /// <param name="unitOfWork">unitOfWork</param> /// <param name="customAuthentication">customAuthentication</param> public AccountController(IAdminService adminService, IUnitOfWork unitOfWork, ICustomAuthentication customAuthentication) { _adminService = adminService; _UnitOfWork = unitOfWork; _customAuthentication = customAuthentication; }