Ejemplo n.º 1
0
 public WebhookManager(
     IWebhooksConfiguration webhooksConfiguration,
     IWebhookSendAttemptStore webhookSendAttemptStore)
 {
     _webhooksConfiguration   = webhooksConfiguration;
     _webhookSendAttemptStore = webhookSendAttemptStore;
 }
Ejemplo n.º 2
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;
 }
        public WebhookSendAttemptStore_Tests()
        {
            LocalIocManager.IocContainer.Register(
                Component.For <IAsyncQueryableExecuter>()
                .ImplementedBy <FakeAsyncQueryableExecuter>()
                .LifestyleSingleton()
                .IsDefault()
                );

            _webhookSendAttemptStore = Resolve <IWebhookSendAttemptStore>();
            _webhookEventStore       = Resolve <IWebhookEventStore>();
        }
Ejemplo n.º 5
0
 public WebhookSendAttemptAppService(
     IWebhookSendAttemptStore webhookSendAttemptStore,
     IBackgroundJobManager backgroundJobManager,
     IWebhookEventAppService webhookEventAppService,
     IWebhookSubscriptionAppService webhookSubscriptionAppService,
     IRepository <WebhookSubscriptionInfo, Guid> subscriptionRepository
     )
 {
     _webhookSendAttemptStore       = webhookSendAttemptStore;
     _backgroundJobManager          = backgroundJobManager;
     _webhookEventAppService        = webhookEventAppService;
     _webhookSubscriptionAppService = webhookSubscriptionAppService;
     _subscriptionRepository        = subscriptionRepository;
 }
        public DefaultWebhookSender(IWebhooksConfiguration webhooksConfiguration)
        {
            _webhooksConfiguration = webhooksConfiguration;

            WebhookSendAttemptStore = NullWebhookSendAttemptStore.Instance;
        }
Ejemplo n.º 7
0
 public EventsApiController()
 {
     this.WebhookSubscriptionsStore = IocManager.Instance.Resolve <IWebhookSubscriptionsStore>();
     this.WebhookSendAttemptStore   = IocManager.Instance.Resolve <IWebhookSendAttemptStore>();
     this.WebhookEventStore         = IocManager.Instance.Resolve <IWebhookEventStore>();
 }
Ejemplo n.º 8
0
 public WebhookSendAttemptStore_Tests()
 {
     _webhookSendAttemptStore = Resolve <IWebhookSendAttemptStore>();
     _webhookEventStore       = Resolve <IWebhookEventStore>();
 }