Ejemplo n.º 1
0
 public WebhookSender_Tests()
 {
     _webhookManager             = Resolve <IWebhookManager>();
     _webhookSender              = Resolve <IWebhookSender>();
     _webhookSubscriptionManager = Resolve <IWebhookSubscriptionManager>();
     _webhookEventStore          = Resolve <IWebhookEventStore>();
     _webhookSendAttemptStore    = Resolve <IWebhookSendAttemptStore>();
 }
 public WebhookSenderJob(
     IWebhooksConfiguration webhooksConfiguration,
     IWebhookSubscriptionManager webhookSubscriptionManager,
     IWebhookSendAttemptStore webhookSendAttemptStore,
     IWebhookSender webhookSender)
 {
     _webhooksConfiguration      = webhooksConfiguration;
     _webhookSubscriptionManager = webhookSubscriptionManager;
     _webhookSendAttemptStore    = webhookSendAttemptStore;
     _webhookSender = webhookSender;
 }
Ejemplo n.º 3
0
 public WebhookSubscriptionAppService(
     IWebhookSubscriptionManager webHookSubscriptionManager,
     IAppWebhookPublisher appWebhookPublisher,
     IWebhookDefinitionManager webhookDefinitionManager,
     ILocalizationContext localizationContext
     )
 {
     _webHookSubscriptionManager = webHookSubscriptionManager;
     _appWebhookPublisher        = appWebhookPublisher;
     _webhookDefinitionManager   = webhookDefinitionManager;
     _localizationContext        = localizationContext;
 }
Ejemplo n.º 4
0
        public DefaultWebhookPublisher(
            IWebhookSubscriptionManager webhookSubscriptionManager,
            IWebhooksConfiguration webhooksConfiguration,
            IGuidGenerator guidGenerator,
            IBackgroundJobManager backgroundJobManager)
        {
            _guidGenerator              = guidGenerator;
            _backgroundJobManager       = backgroundJobManager;
            _webhookSubscriptionManager = webhookSubscriptionManager;
            _webhooksConfiguration      = webhooksConfiguration;

            WebhookEventStore = NullWebhookEventStore.Instance;
        }