/// <summary> /// Creates the service. /// </summary> /// <returns></returns> private IService CreateService() { IService service = ServiceFactory.Create(_processor, _controller, _errorHandlingController); if (_errorHandlingConfigurator != null) { IMonitor monitor = _errorHandlingConfigurator.Create(_controller); _controller.Monitor = monitor; } return(service); }