Beispiel #1
0
 public SuitHost(object?instance, Logger logger, IIOServer io, Type buildInCommandServer, IPromptServer prompt)
 //: this(configuration ?? ISuitConfiguration.GetDefaultConfiguration())
 {
     Current   = new SuitObject(instance);
     Assembly  = WorkType?.Assembly;
     Logger    = logger;
     IO        = io;
     Prompt    = prompt;
     BicServer = new SuitObject(buildInCommandServer?.GetConstructor(new[] { typeof(SuitHost) })?.Invoke(new object?[] { this }));
     WorkInstanceInit();
 }
Beispiel #2
0
 /// <summary>
 ///     Initialize a BicServer with the given SuitHost.
 /// </summary>
 /// <param name="host">The given SuitHost.</param>
 public BuildInCommandServer(SuitHost host)
 {
     Host    = host;
     HostRef = new SuitObject(Host?.Settings);
 }