示例#1
0
 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;
 }
示例#3
0
 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;
 }
示例#4
0
 public TimeoutComponentWorkCommandHandler(IComponentChannelIdentifierRepository componentChannelIdentifierRepository, IMessageSenderFactory messageSenderFactory, IStagingStoreContainer stagingStoreContainer)
 {
     this._componentChannelIdentifierRepository = componentChannelIdentifierRepository;
     this._messageSenderFactory  = messageSenderFactory;
     this._stagingStoreContainer = stagingStoreContainer;
 }
示例#5
0
 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;
 }