예제 #1
0
파일: Core.cs 프로젝트: tinmanjk/NetOffice
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 public Core()
 {
     CoreDomain              = new CurrentAppDomain(this);
     InternalObjectRegister  = new CoreManagement(this);
     InternalObjectActivator = new CoreActivator(this);
     InternalObjectResolver  = new CoreResolver(this);
     InternalObjectEvents    = new CoreEvents(this);
     InternalFactories       = new CoreFactories(this);
     InternalCache           = new CoreCache(this);
     Console  = OnCreateConsole();
     Settings = OnCreateSettings();
     Invoker  = OnCreateInvoker();
     OnCreate();
 }
예제 #2
0
파일: Core.cs 프로젝트: netoffice/NetOffice
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 /// <param name="isDefault">Mark this instance as default instance</param>
 private Core(bool isDefault)
 {
     _appDomain = new CurrentAppDomain(this);
     IsDefault = isDefault;
     if (IsDefault)
     {
         Settings = Settings.Default;
         Console = DebugConsole.Default;
         Invoker = Invoker.Default;
     }
     else
     {
         Settings = new Settings();
         Console = new DebugConsole();
         Invoker = new Invoker(this);
     }
 }
예제 #3
0
파일: Core.cs 프로젝트: netoffice/NetOffice
 /// <summary>
 /// Creates an instance of the class
 /// </summary>
 public Core()
 {
     _appDomain = new CurrentAppDomain(this);
     Settings = new Settings();
     Console = new DebugConsole();
     Invoker = new Invoker(this);
 }