Ejemplo n.º 1
0
 public RolloutUsernameActivator(ILogger <XabarilModule> logger,
                                 IRuntimeParameterAccessor runtimeParameterAccessor,
                                 IUserProvider userProvider)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _runtimeParameterAccessor = runtimeParameterAccessor ?? throw new ArgumentNullException(nameof(runtimeParameterAccessor));
     _userProvider             = userProvider ?? throw new ArgumentNullException(nameof(userProvider));
 }
Ejemplo n.º 2
0
 public HeaderValueActivator(ILogger <XabarilModule> logger,
                             IRuntimeParameterAccessor runtimeParameterAccessor,
                             IHttpContextAccessor httpContextAccessor)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _runtimeParameterAccessor = runtimeParameterAccessor ?? throw new ArgumentNullException(nameof(runtimeParameterAccessor));
     _httpContextAccessor      = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
 }
Ejemplo n.º 3
0
 public RoleActivator(ILogger <XabarilModule> logger,
                      IRuntimeParameterAccessor runtimeParameterAccessor,
                      IRoleProvider roleProvider)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _runtimeParameterAccessor = runtimeParameterAccessor ?? throw new ArgumentNullException(nameof(runtimeParameterAccessor));
     _roleProvider             = roleProvider ?? throw new ArgumentNullException(nameof(roleProvider));
 }
Ejemplo n.º 4
0
 public LocationActivator(ILogger <XabarilModule> logger,
                          IRuntimeParameterAccessor runtimeParameterAccessor,
                          IHttpContextAccessor httpContextAccessor,
                          IGeoLocationProvider geoLocationProvider)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _runtimeParameterAccessor = runtimeParameterAccessor ?? throw new ArgumentNullException(nameof(runtimeParameterAccessor));
     _httpContextAccessor      = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor));
     _geoLocationProvider      = geoLocationProvider ?? throw new ArgumentNullException(nameof(geoLocationProvider));
 }