/// <summary> /// STOP INBOUND Message Retriever /// </summary> private void StopInboundMessageRetriever() { if (inboundMessageRetriever == null) { return; } inboundMessageRetriever.Stop(); inboundMessageRetriever = null; if (LOGGER.IsInfoEnabled) { LOGGER.Info("Inbound Messages Retriever is successfully stopped."); } }
/// <summary> /// START INBOUND Message Retriever /// </summary> private void StartInboundMessageRetriever() { if (this.inboundMessageRetriever != null) { return; } this.inboundMessageRetriever = new InboundMessageRetriever(); int intervalMs = Configuration.InboundMessagesRetrievingInterval; this.inboundMessageRetriever.Start(intervalMs, this); if (LOGGER.IsInfoEnabled) { LOGGER.Info("Inbound Messages Retriever is successfully started."); } }