Example #1
0
 public WebHookRegistrationStore(IMongoContext <WebHook> context, IPrincipalIdGetter idGetter, ISecretProtector secretProtector, ILogger <WebHookRegistrationStore> logger)
 {
     _context         = context ?? throw new ArgumentNullException(nameof(context));
     _idGetter        = idGetter ?? throw new ArgumentNullException(nameof(idGetter));
     _secretProtector = secretProtector ?? throw new ArgumentNullException(nameof(secretProtector));
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Example #2
0
 public WebHookStore(IMongoContext <WebHook> context, ISecretProtector secretProtector)
 {
     _context         = context ?? throw new ArgumentNullException(nameof(context));
     _secretProtector = secretProtector ?? throw new ArgumentNullException(nameof(secretProtector));
 }
Example #3
0
 /// <summary>Initializes a new instance of the <see cref="WebHookStore{TContext}"/> class.</summary>
 public WebHookStore(TContext context, ISecretProtector secretProtector, IWebHookMatcher webHookMatcher)
 {
     _context         = context ?? throw new ArgumentNullException(nameof(context));
     _secretProtector = secretProtector ?? throw new ArgumentNullException(nameof(secretProtector));
     _webHookMatcher  = webHookMatcher ?? throw new ArgumentNullException(nameof(webHookMatcher));
 }
Example #4
0
 /// <summary>Initializes a new instance of the <see cref="WebHookReplayService{TContext}"/> class.</summary>
 public WebHookReplayService(TContext context, IWebHookSender sender, ISecretProtector secretProtector)
 {
     _context         = context ?? throw new ArgumentNullException(nameof(context));
     _sender          = sender ?? throw new ArgumentNullException(nameof(sender));
     _secretProtector = secretProtector ?? throw new ArgumentNullException(nameof(secretProtector));
 }