internal static void Start(IChannelProvider channelProvider, IComponentChannelIdentifierRepository componentChannelIdentifierRepository, IHubContext <IngestEventsHub> hubContext) { channelProvider.GetMessageSource <SerializedEvent>(componentChannelIdentifierRepository.GetChannelIdentifierFor(IngestEventConstants.ChannelIdentifierCode)).GetChannel().Subscribe(evt => { hubContext.Clients.All.SendAsync("onNewEvent", evt.GetEventObject()); }); }
public CompleteComponentWorkCommandHandler(IMessageSenderFactory messageSenderFactory, IComponentChannelIdentifierRepository componentChannelIdentifierRepository, IStagingStoreContainer stagingStoreContainer, IComponentPlanExecutor componentPlanExecutor) { this._stagingStoreContainer = stagingStoreContainer; this._componentPlanExecutor = componentPlanExecutor; this._messageSenderFactory = messageSenderFactory; this._componentChannelIdentifierRepository = componentChannelIdentifierRepository; }
public StartIngestCommandHandler(IMessageSenderFactory messageSenderFactory, IComponentChannelIdentifierRepository componentChannelIdentifierRepository, ISubmissionAgreementStore submissionAgreementStore, IStagingStoreContainer stagingStoreContainer, IComponentPlanExecutor componentPlanExecutor) { this._submissionAgreementStore = submissionAgreementStore; this._stagingStoreContainer = stagingStoreContainer; this._componentPlanExecutor = componentPlanExecutor; this._messageSenderFactory = messageSenderFactory; this._componentChannelIdentifierRepository = componentChannelIdentifierRepository; }
public TimeoutComponentWorkCommandHandler(IComponentChannelIdentifierRepository componentChannelIdentifierRepository, IMessageSenderFactory messageSenderFactory, IStagingStoreContainer stagingStoreContainer) { this._componentChannelIdentifierRepository = componentChannelIdentifierRepository; this._messageSenderFactory = messageSenderFactory; this._stagingStoreContainer = stagingStoreContainer; }
public IngestionsController(ICaPMEventStore capmEventStore, IMessageSenderFactory messageSenderFactory, IComponentChannelIdentifierRepository componentChannelIdentifierRepository) { _messageSenderFactory = messageSenderFactory; _componentChannelIdentifierRepository = componentChannelIdentifierRepository; _capmEventStore = capmEventStore; }
public CommandMessageListener(IChannelProvider channelProvider, IComponentChannelIdentifierRepository componentChannelIdentifierRepository, ILifetimeScope iocLifetimeScope) { this._channelProvider = channelProvider; this._componentChannelIdentifierRepository = componentChannelIdentifierRepository; this._iocLifetimeScope = iocLifetimeScope; }
public ComponentPlanExecutor(IComponentChannelIdentifierRepository componentChannelIdentifierRepository, IMessageSenderFactory messageSenderFactory, IStagingStoreContainer stagingStoreContainer) { this._componentChannelIdentifierRepository = componentChannelIdentifierRepository; this._messageSenderFactory = messageSenderFactory; this._stagingStoreContainer = stagingStoreContainer; }