Example #1
0
 /// <summary>
 /// calls Quit for a proxy
 /// </summary>
 /// <param name="settings"></param>
 /// <param name="invoker"></param>
 /// <param name="instance"></param>
 private static void CallQuit(Settings settings, Invoker invoker, COMObject instance)
 {
     try
     {
         if (null == instance)
             return;
         if (settings.EnableAutomaticQuit)
             invoker.Method(instance.UnderlyingObject, "Quit");
     }
     catch (Exception exception)
     {
         instance.Console.WriteException(exception);
     }
 }
Example #2
0
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 public Core()
 {
     Settings = new Settings();
     Console = new DebugConsole();
     Invoker = new Invoker(this);
 }
Example #3
0
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="isDefault">Mark this instance as default instance</param>
 private Core(bool isDefault)
 {
     IsDefault = isDefault;
     if (IsDefault)
     {
         Settings = Settings.Default;
         Console = DebugConsole.Default;
         Invoker = Invoker.Default;
     }
     else
     {
         Settings = new Settings();
         Console = new DebugConsole();
         Invoker = new Invoker(this);
     }
 }
Example #4
0
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 public Core()
 {
     _appDomain = new CurrentAppDomain(this);
     Settings = new Settings();
     Console = new DebugConsole();
     Invoker = new Invoker(this);
 }