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;
 }
Exemplo n.º 3
0
 public ExternalUserController(IExternalUserRepository repository,
                               IMapper mapper,
                               ICustomAuthentication authentication,
                               IExternalUserService externalUserService)
 {
     this.repository          = repository;
     this.mapper              = mapper;
     this.authentication      = authentication;
     this.externalUserService = externalUserService;
 }
Exemplo n.º 4
0
 public ExternalUserService(
     IExternalUserRepository repository,
     IMapper mapper,
     IOptions <GlobalConfig> options,
     ICustomAuthentication authentication
     )
 {
     this.repository     = repository;
     this.mapper         = mapper;
     this.globalConfig   = options.Value;
     this.authentication = authentication;
 }
Exemplo n.º 5
0
        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;
 }
Exemplo n.º 8
0
 public BaseController(ICustomAuthentication customAuthentication)
 {
     _customAuthentication = customAuthentication;
 }
Exemplo n.º 9
0
 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;
 }