Ejemplo n.º 1
0
 /// <summary>
 ///     Create new instance.
 /// </summary>
 public VlogRequestService(INotificationService notificationService,
                           IUserSelectionService userSelectionService,
                           IOptions <SwabbrConfiguration> options,
                           ILogger <VlogRequestService> logger)
 {
     _notificationService  = notificationService ?? throw new ArgumentNullException(nameof(notificationService));
     _userSelectionService = userSelectionService ?? throw new ArgumentNullException(nameof(userSelectionService));
     _options = options?.Value ?? throw new ArgumentNullException(nameof(options));
     _logger  = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Create new instance.
 /// </summary>
 public UserSelectionService(IUserService userService,
                             IOptions <SwabbrConfiguration> options)
 {
     _userService = userService ?? throw new ArgumentNullException(nameof(userService));
     _options     = options?.Value ?? throw new ArgumentNullException(nameof(options));
 }