Ejemplo n.º 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;
    }
Ejemplo n.º 2
0
 public UtilityController(PersistentEventQueryValidator eventQueryValidator, StackQueryValidator stackQueryValidator)
 {
     _eventQueryValidator = eventQueryValidator;
     _stackQueryValidator = stackQueryValidator;
 }