/// <summary> /// Creates the specified processor. /// </summary> /// <param name="processor">The processor.</param> /// <param name="controller">The controller.</param> /// <param name="errorHandlingController">The error handling controller.</param> /// <returns></returns> public static IService Create(IProcessor processor, IController controller, IErrorHandlingController errorHandlingController) { var service = new Service(processor, controller, errorHandlingController); InjectDependencies(service); return service; }
/// <summary> /// Creates the specified processor. /// </summary> /// <param name="processor">The processor.</param> /// <param name="controller">The controller.</param> /// <param name="errorHandlingController">The error handling controller.</param> /// <returns></returns> public static IService Create(IProcessor processor, IController controller, IErrorHandlingController errorHandlingController) { var service = new Service(processor, controller, errorHandlingController); InjectDependencies(service); return(service); }
/// <summary> /// Initializes a new instance of the <see cref="Service" /> class. /// </summary> /// <param name="processor">The processor.</param> /// <param name="controller">The controller.</param> /// <param name="errorHandlingController">The error handling controller.</param> public Service(IProcessor processor, IController controller, IErrorHandlingController errorHandlingController) { _processor = processor; _controller = controller; _errorHandlingController = errorHandlingController; ConfigureErrorHandling(); _controller.Processor = _processor; ConfigureStateMachine(); }
/// <summary> /// Creates the monitor. /// </summary> private ServiceConfigurator CreateErrorHandlingController() { if (_HermEsbServiceConfig.ErrorHandlingController.ElementInformation.IsPresent) { var errorHandlingConfigurator = new ErrorHandlingControllerConfigurator(_HermEsbServiceConfig.ErrorHandlingController, _identification); _errorHandlingController = errorHandlingConfigurator.Create(); } else { _errorHandlingController = ErrorHandlingControllerFactory.NullController; } return this; }
/// <summary> /// Creates the monitor. /// </summary> private ServiceConfigurator CreateErrorHandlingController() { if (_HermEsbServiceConfig.ErrorHandlingController.ElementInformation.IsPresent) { var errorHandlingConfigurator = new ErrorHandlingControllerConfigurator(_HermEsbServiceConfig.ErrorHandlingController, _identification); _errorHandlingController = errorHandlingConfigurator.Create(); } else { _errorHandlingController = ErrorHandlingControllerFactory.NullController; } return(this); }