/// <summary> /// Instantiates an instance of <see cref="WebhookCoordinator" /> /// </summary> /// <param name="tenantMapper">An installation to tenant mapper</param> /// <param name="schedulerFactory">A factory for creating an instance of the scheduler</param> /// <param name="executionContextManager">The execution context manager for scoping to the correct tenant</param> /// <param name="handlerRegistry">The handler registry for finding the correct handlers for the webhook type</param> /// <param name="logger">A logger for logging</param> public WebhookCoordinator( IInstallationToTenantMapper tenantMapper, FactoryFor <IWebhookScheduler> schedulerFactory, IExecutionContextManager executionContextManager, IWebhookHandlerRegistry handlerRegistry, ILogger logger ) { _tenantMapper = tenantMapper; _schedulerFactory = schedulerFactory; _executionContextManager = executionContextManager; _logger = logger; _handlerRegistry = handlerRegistry; }
/// <summary> /// Instantiates an instanace of <see cref="InstallationEventProcessor" /> /// </summary> /// <param name="executionContextManager">The <see cref="IExecutionContextManager" /> to set the correct <see cref="ExecutionContext" /></param> /// <param name="tenantMapper">The <see cref="IInstallationToTenantMapper" /> to map <see cref="Installation">Installations</see> to <see cref="Tenant">Tenants></see></param> public InstallationEventProcessor(IExecutionContextManager executionContextManager, IInstallationToTenantMapper tenantMapper) { _executionContextManager = executionContextManager; _tenantMapper = tenantMapper; }