Ejemplo n.º 1
0
 /// <summary>
 ///     Creates the monitor.
 /// </summary>
 private BusConfigurator CreateMonitor()
 {
     if (_hermEsbConfig.RouterControlProcessor.Monitor.ElementInformation.IsPresent)
     {
         _errorHandlingConfigurator = new MonitorConfigurator(_hermEsbConfig.RouterControlProcessor.Monitor,
                                                              _identification);
         _errorHandlingConfigurator.Configure();
     }
     return(this);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates the service.
        /// </summary>
        /// <returns></returns>
        private IService CreateService()
        {
            var service = ServiceFactory.Create(_processor, _controller, _errorHandlingController);

            if (_monitorConfigurator != null)
            {
                var monitor = _monitorConfigurator.Configure()
                              .Create(_controller);
                _controller.Monitor = monitor;
            }
            return(service);
        }