/// <summary> /// Remote audit repository service /// </summary> public RemoteAuditRepositoryService(IDispatcherQueueManagerService dispatcherQueueManagerService, IAuditDispatchService auditDispatchService = null) { this.m_dispatcherQueue = dispatcherQueueManagerService; this.m_dispatcherQueue.Open(AmiQueueName); this.m_dispatcherQueue.Open(AmiDeadQueueName); this.m_dispatcherQueue.SubscribeTo(AmiQueueName, this.MonitorOutboundQueue); }
/// <summary> /// Create a new pub-sub broker /// </summary> public PubSubBroker(IServiceManager serviceManager, IDispatcherQueueManagerService queueService, IPubSubManagerService pubSubManager) { this.m_serviceManager = serviceManager; this.m_queue = queueService; this.m_pubSubManager = pubSubManager; // Create necessary service listener this.m_pubSubManager.Subscribed += this.PubSubSubscribed; this.m_pubSubManager.UnSubscribed += this.PubSubUnSubscribed; queueService.Open(QueueName); queueService.SubscribeTo(QueueName, this.NotificationQueued); queueService.Open($"{QueueName}.dead"); }
/// <summary> /// DI constructor for persistent queue /// </summary> public DispatcherQueueResourceHandler(IDispatcherQueueManagerService queueService, ILocalizationService localization) { this.m_queueService = queueService; this.m_localizationService = localization; }
/// <summary> /// DI constructor for persistent queue /// </summary> public DispatcherQueueEntryChildResource(IDispatcherQueueManagerService queueService, ILocalizationService localization, IPolicyEnforcementService pepService) { this.m_queueService = queueService; this.m_localizationService = localization; this.m_policyEnforcementService = pepService; }
/// <summary> /// Bundle repository listener ctor /// </summary> public BundleRepositoryListener(IPubSubManagerService pubSubManager, IDispatcherQueueManagerService queueService, IServiceManager serviceManager) : base(pubSubManager, queueService, serviceManager) { this.m_queue = queueService; }