Beispiel #1
0
 public ExecuteRequestHandler(BaseEngine engine, IServiceProvider serviceProvider)
 {
     if (serviceProvider == null)
     {
         throw new ArgumentNullException(nameof(serviceProvider));
     }
     this.engine      = engine;
     this.shellServer = serviceProvider.GetService <IShellServer>();
     this.logger      = serviceProvider.GetService <ILogger <ExecuteRequestHandler> >();
 }
Beispiel #2
0
 public CompleteRequestHandler(IExecutionEngine engine, IShellServer shellServer, ILogger <CompleteRequestHandler> logger)
 {
     if (engine is BaseEngine baseEngine)
     {
         this.engine = baseEngine;
     }
     else
     {
         throw new Exception("The CompleteRequestHandler requires that the IExecutionEngine service inherits from BaseEngine.");
     }
     this.shellServer = shellServer;
     this.logger      = logger;
 }
Beispiel #3
0
 public ExecutionChannel(BaseEngine engine, Message parent)
 {
     this.parent = parent;
     this.engine = engine;
 }
Beispiel #4
0
 public ExecutionChannel(BaseEngine engine, Message parent, ICommsRouter router)
 {
     this.parent = parent;
     this.engine = engine;
     this.router = router;
 }