示例#1
0
 /// <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;
 }
示例#2
0
 /// <summary>
 ///     Injects the dependencies.
 /// </summary>
 /// <param name="service">The service.</param>
 private static void InjectDependencies(Service service)
 {
     service.Logger = LoggerManager.Instance;
 }