コード例 #1
0
    public StackController(
        IStackRepository stackRepository,
        IOrganizationRepository organizationRepository,
        IProjectRepository projectRepository,
        IEventRepository eventRepository,
        IWebHookRepository webHookRepository,
        WebHookDataPluginManager webHookDataPluginManager,
        IQueue <WebHookNotification> webHookNotificationQueue,
        ICacheClient cacheClient,
        BillingManager billingManager,
        FormattingPluginManager formattingPluginManager,
        SemanticVersionParser semanticVersionParser,
        IMapper mapper,
        StackQueryValidator validator,
        AppOptions options,
        ILoggerFactory loggerFactory
        ) : base(stackRepository, mapper, validator, loggerFactory)
    {
        _stackRepository          = stackRepository;
        _organizationRepository   = organizationRepository;
        _projectRepository        = projectRepository;
        _eventRepository          = eventRepository;
        _webHookRepository        = webHookRepository;
        _webHookDataPluginManager = webHookDataPluginManager;
        _webHookNotificationQueue = webHookNotificationQueue;
        _cache                   = cacheClient;
        _billingManager          = billingManager;
        _formattingPluginManager = formattingPluginManager;
        _semanticVersionParser   = semanticVersionParser;
        _options                 = options;

        AllowedDateFields.AddRange(new[] { StackIndex.Alias.FirstOccurrence, StackIndex.Alias.LastOccurrence });
        DefaultDateField = StackIndex.Alias.LastOccurrence;
    }
コード例 #2
0
 public QueueNotificationAction(IQueue<EventNotificationWorkItem> notificationQueue, IQueue<WebHookNotification> webHookNotificationQueue, IWebHookRepository webHookRepository, WebHookDataPluginManager webHookDataPluginManager, ILoggerFactory loggerFactory = null) : base(loggerFactory) {
     _notificationQueue = notificationQueue;
     _webHookNotificationQueue = webHookNotificationQueue;
     _webHookRepository = webHookRepository;
     _webHookDataPluginManager = webHookDataPluginManager;
     ContinueOnError = true;
 }
コード例 #3
0
 public QueueNotificationAction(IQueue <EventNotification> notificationQueue, IQueue <WebHookNotification> webHookNotificationQueue, IWebHookRepository webHookRepository, WebHookDataPluginManager webHookDataPluginManager, AppOptions options, ILoggerFactory loggerFactory = null) : base(options, loggerFactory)
 {
     _notificationQueue        = notificationQueue;
     _webHookNotificationQueue = webHookNotificationQueue;
     _webHookRepository        = webHookRepository;
     _webHookDataPluginManager = webHookDataPluginManager;
     ContinueOnError           = true;
 }
コード例 #4
0
 public QueueNotificationAction(IQueue<EventNotificationWorkItem> notificationQueue, 
     IQueue<WebHookNotification> webHookNotificationQueue, 
     IWebHookRepository webHookRepository,
     WebHookDataPluginManager webHookDataPluginManager) {
     _notificationQueue = notificationQueue;
     _webHookNotificationQueue = webHookNotificationQueue;
     _webHookRepository = webHookRepository;
     _webHookDataPluginManager = webHookDataPluginManager;
 }
コード例 #5
0
 public QueueNotificationAction(IQueue <EventNotification> notificationQueue,
                                IQueue <WebHookNotification> webHookNotificationQueue,
                                IWebHookRepository webHookRepository,
                                WebHookDataPluginManager webHookDataPluginManager)
 {
     _notificationQueue        = notificationQueue;
     _webHookNotificationQueue = webHookNotificationQueue;
     _webHookRepository        = webHookRepository;
     _webHookDataPluginManager = webHookDataPluginManager;
 }
コード例 #6
0
 public QueueNotificationAction(IQueue <EventNotificationWorkItem> notificationQueue,
                                IQueue <WebHookNotification> webHookNotificationQueue,
                                IWebHookRepository webHookRepository,
                                WebHookDataPluginManager webHookDataPluginManager)
 {
     _notificationQueue        = notificationQueue;
     _webHookNotificationQueue = webHookNotificationQueue;
     _webHookRepository        = webHookRepository;
     _webHookDataPluginManager = webHookDataPluginManager;
     ContinueOnError           = true;
 }
コード例 #7
0
        public StackController(IStackRepository stackRepository, IOrganizationRepository organizationRepository, IProjectRepository projectRepository, IQueue <WorkItemData> workItemQueue, IWebHookRepository webHookRepository, WebHookDataPluginManager webHookDataPluginManager, IQueue <WebHookNotification> webHookNotificationQueue, ICacheClient cacheClient, EventStats eventStats, BillingManager billingManager, FormattingPluginManager formattingPluginManager, ILoggerFactory loggerFactory, IMapper mapper) : base(stackRepository, loggerFactory, mapper)
        {
            _stackRepository          = stackRepository;
            _organizationRepository   = organizationRepository;
            _projectRepository        = projectRepository;
            _workItemQueue            = workItemQueue;
            _webHookRepository        = webHookRepository;
            _webHookDataPluginManager = webHookDataPluginManager;
            _webHookNotificationQueue = webHookNotificationQueue;
            _cacheClient             = cacheClient;
            _eventStats              = eventStats;
            _billingManager          = billingManager;
            _formattingPluginManager = formattingPluginManager;

            AllowedFields.AddRange(new[] { "first", "last" });
        }
コード例 #8
0
 public StackController(IStackRepository stackRepository, IOrganizationRepository organizationRepository,
                        IProjectRepository projectRepository, IWebHookRepository webHookRepository,
                        WebHookDataPluginManager webHookDataPluginManager, IQueue <WebHookNotification> webHookNotificationQueue,
                        BillingManager billingManager, DataHelper dataHelper,
                        FormattingPluginManager formattingPluginManager) : base(stackRepository)
 {
     _stackRepository          = stackRepository;
     _organizationRepository   = organizationRepository;
     _projectRepository        = projectRepository;
     _webHookRepository        = webHookRepository;
     _webHookDataPluginManager = webHookDataPluginManager;
     _webHookNotificationQueue = webHookNotificationQueue;
     _billingManager           = billingManager;
     _dataHelper = dataHelper;
     _formattingPluginManager = formattingPluginManager;
 }
コード例 #9
0
        public StackController(IStackRepository stackRepository,
                               IProjectRepository projectRepository, IEventRepository eventRepository, IWebHookRepository webHookRepository,
                               WebHookDataPluginManager webHookDataPluginManager, IQueue <WebHookNotification> webHookNotificationQueue,
                               EventStats eventStats, BillingManager billingManager,
                               FormattingPluginManager formattingPluginManager) : base(stackRepository)
        {
            _stackRepository          = stackRepository;
            _projectRepository        = projectRepository;
            _eventRepository          = eventRepository;
            _webHookRepository        = webHookRepository;
            _webHookDataPluginManager = webHookDataPluginManager;
            _webHookNotificationQueue = webHookNotificationQueue;
            _eventStats              = eventStats;
            _billingManager          = billingManager;
            _formattingPluginManager = formattingPluginManager;

            AllowedFields.AddRange(new[] { "first", "last" });
        }
コード例 #10
0
 public WebHookDataTests(ServicesFixture fixture, ITestOutputHelper output) : base(fixture, output)
 {
     _webHookData = GetService <WebHookDataPluginManager>();
     _formatter   = GetService <FormattingPluginManager>();
 }