Exemple #1
0
 public DeleteSpaceCommandHandler(
     IAggregateRepository aggregateRepository,
     IResourceAuthorizationService authorizationService)
 {
     _aggregateRepository          = aggregateRepository;
     _resourceAuthorizationService = authorizationService;
 }
 public EditCommentCommandHandler(
     IAggregateRepository aggregateRepository,
     IResourceAuthorizationService resourceAuthorizationService)
 {
     _aggregateRepository          = aggregateRepository;
     _resourceAuthorizationService = resourceAuthorizationService;
 }
Exemple #3
0
 public AuthController(IUserService userService, ILogger <AuthController> logger, IWebAuthnService webAuthnService, IResourceAuthorizationService resourceAuthorizationService)
 {
     _userService     = userService;
     _logger          = logger;
     _webAuthnService = webAuthnService;
     _resourceAuthorizationService = resourceAuthorizationService;
 }
 public UpdateSpaceCommandHandler(
     IAggregateRepository aggregateRepository,
     ISpaceChecker spaceValidatorService,
     IResourceAuthorizationService resourceAuthorizationService)
 {
     _aggregateRepository          = aggregateRepository;
     _spaceValidatorService        = spaceValidatorService;
     _resourceAuthorizationService = resourceAuthorizationService;
 }
Exemple #5
0
 public ActivityController(ITurnService turnService, IResourceAuthorizationService resourceAuthorizationService)
 {
     _turnService = turnService;
     _resourceAuthorizationService = resourceAuthorizationService;
 }
Exemple #6
0
 /// <summary>
 /// Crée une instance de <see cref="ResourceAuthorizeFilter"/> pour la resource et les autorisations spécifiées.
 /// </summary>
 /// <param name="resourceName">Le nom de la ressource.</param>
 /// <param name="requiredGrants">Les autorisations nécessaires sur la ressource.</param>
 /// <param name="resourceAuthorizationService">Le service permettant d'effectuer la vérification.</param>
 public ResourceAuthorizeFilter(string resourceName, ResourceGrant requiredGrants, IResourceAuthorizationService resourceAuthorizationService)
 {
     _resourceName   = resourceName;
     _requiredGrants = requiredGrants;
     _resourceAuthorizationService = resourceAuthorizationService;
 }
Exemple #7
0
 public SessionController(IResourceAuthorizationService resourceAuthorizationService, IUserService userService)
 {
     _resourceAuthorizationService = resourceAuthorizationService;
     _userService = userService;
 }
 public NotificationController(INotificationService notificationService, IResourceAuthorizationService resourceAuthorizationService)
 {
     _notificationService          = notificationService;
     _resourceAuthorizationService = resourceAuthorizationService;
 }