Exemple #1
0
 /// <summary>
 /// Create the instance.
 /// </summary>
 /// <param name="host"></param>
 protected CommandLineModule(IModuleHost host) : base(host)
 {
     Collection = host.GetCommandLineModuleCollection();
     _manifest  = new Lazy <CommandLineModuleManifest>(() => Collection.GetManifest(GetType()));
 }
Exemple #2
0
 public CommandLineCoreModule(IModuleHost host, ICommandLineModuleCollection collection) : base(host)
 {
     Collection = collection;
 }
 public CommandLineWorker(IServiceProvider services, IHostApplicationLifetime lifetime, ICommandLineModuleCollection collection)
 {
     Services   = services;
     Lifetime   = lifetime;
     Collection = collection;
 }