コード例 #1
0
ファイル: SuitHost.cs プロジェクト: Plastic-Metal/MobileSuit
 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();
 }
コード例 #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);
 }