public MessageHandlingPipelineExecutingService( IMessageHandlingService messageHandlingService, IErrorProcessingService errorProcessingService, IEnumerable <IMessageHandlingMiddleware> messageHandlingMiddlewares) { _messageHandlingService = messageHandlingService; _errorProcessingService = errorProcessingService; _messageHandlingMiddlewares = messageHandlingMiddlewares; }
/// <summary> /// Main Application that takes in all the services /// </summary> /// <param name="pipeService">Requires an <see cref="IPipeService" /></param> /// <param name="taskService">Requires an <see cref="ITaskService" /></param> /// <param name="interactiveConsoleService">Requires an <see cref="IInteractiveConsoleService" /></param> /// <param name="loggerService">Requires an <see cref="ILoggerService" /></param> /// <param name="errorProcessingService">Requires an <see cref="IErrorProcessingService" /></param> /// <param name="tcpService">Requires an <see cref="ITcpService" /></param> /// <param name="cmdRunnerService"></param> /// <param name="config">Requires an <see cref="IOptions{TOptions}" /></param> public App(IPipeService pipeService, ITaskService taskService, IInteractiveConsoleService interactiveConsoleService, ILoggerService loggerService, IErrorProcessingService errorProcessingService, ITcpService tcpService, ICmdRunnerService cmdRunnerService, IInterrogatorService interrogatorService, IOptions <AppSettings> config ) { _interactiveConsoleService = interactiveConsoleService; _pipeService = pipeService; _taskService = taskService; _loggerService = loggerService; _errorProcessingService = errorProcessingService; _tcpService = tcpService; _commandRunnerService = cmdRunnerService; _interrogatorService = interrogatorService; _config = config.Value; }
private static IMessageHandlingPipelineExecutingService CreateService( IMessageHandlingService messageHandlingService, IErrorProcessingService errorProcessingService, IEnumerable <IMessageHandlingMiddleware> middlewares) => new MessageHandlingPipelineExecutingService(messageHandlingService, errorProcessingService, middlewares);