public MsmqListener(DistributorService distributorService, int timerInterval, string msmqPath) { this.distributorService = distributorService; this.QueueTimerInterval = timerInterval; this.eventLogger = distributorService.EventLogger; this.logDistributor = new MsmqLogDistributor(EnterpriseLibraryFactory.BuildUp <LogWriter>(), msmqPath, this.eventLogger); }
/// <summary> /// Initialize a new instance of the <see cref="MsmqListener"/>. /// </summary> /// <param name="distributorService">Distributor service inheriting from <see cref="System.ServiceProcess.ServiceBase"/>.</param> /// <param name="timerInterval">Interval to check for new messages.</param> /// <param name="msmqPath">The name of the queue to get messages from.</param> public MsmqListener(DistributorService distributorService, int timerInterval, string msmqPath) { this.distributorService = distributorService; this.QueueTimerInterval = timerInterval; this.eventLogger = distributorService.EventLogger; this.logDistributor = new MsmqLogDistributor(EnterpriseLibraryFactory.BuildUp<LogWriter>(), msmqPath, this.eventLogger); }
/// <summary> /// Initialize a new instance of the <see cref="MsmqListener"/>. /// </summary> /// <param name="distributorService">Distributor service inheriting from <see cref="System.ServiceProcess.ServiceBase"/>.</param> /// <param name="timerInterval">Interval to check for new messages.</param> /// <param name="msmqPath">The name of the queue to get messages from.</param> public MsmqListener(DistributorService distributorService, int timerInterval, string msmqPath) { this.distributorService = distributorService; this.QueueTimerInterval = timerInterval; this.eventLogger = distributorService.EventLogger; this.logDistributor = new MsmqLogDistributor(EnterpriseLibraryContainer.Current.GetInstance<LogWriter>(), msmqPath, this.eventLogger); }
/// <summary> /// Initialize a new instance of the <see cref="MsmqListener"/>. /// </summary> /// <param name="distributorService">Distributor service inheriting from <see cref="System.ServiceProcess.ServiceBase"/>.</param> /// <param name="timerInterval">Interval to check for new messages.</param> /// <param name="msmqPath">The name of the queue to get messages from.</param> public MsmqListener(DistributorService distributorService, int timerInterval, string msmqPath) { this.distributorService = distributorService; this.QueueTimerInterval = timerInterval; this.eventLogger = distributorService.EventLogger; this.logDistributor = new MsmqLogDistributor(msmqPath, this.eventLogger); }
/// <summary> /// Initialize a new instance of the <see cref="MsmqListener"/>. /// </summary> /// <param name="distributorService">Distributor service inheriting from <see cref="System.ServiceProcess.ServiceBase"/>.</param> /// <param name="timerInterval">Interval to check for new messages.</param> public MsmqListener(DistributorService distributorService, int timerInterval) { this.distributorService = distributorService; this.QueueTimerInterval = timerInterval; this.eventLogger = distributorService.EventLogger; this.logDistributor = new MsmqLogDistributor(ConfigurationManager.GetCurrentContext(), this.eventLogger); }
/// <summary> /// Initialize a new instance of the <see cref="MsmqListener"/>. /// </summary> /// <param name="distributorService">Distributor service inheriting from <see cref="System.ServiceProcess.ServiceBase"/>.</param> /// <param name="timerInterval">Interval to check for new messages.</param> /// <param name="msmqPath">The name of the queue to get messages from.</param> public MsmqListener(DistributorService distributorService, int timerInterval, string msmqPath) { this.distributorService = distributorService; this.QueueTimerInterval = timerInterval; this.eventLogger = distributorService.EventLogger; this.logDistributor = new MsmqLogDistributor(EnterpriseLibraryContainer.Current.GetInstance <LogWriter>(), msmqPath, this.eventLogger); }
/// <summary> /// <exclude /> /// </summary> /// <devdoc> /// support unit tests - allows for a mock object /// </devdoc> public void SetMsmqLogDistributor(MsmqLogDistributor logDistributor) { this.logDistributor = logDistributor; }
/// <devdoc> /// support unit tests - allows for a mock object /// </devdoc> internal void SetMsmqLogDistributor(MsmqLogDistributor logDistributor) { this.logDistributor = logDistributor; }