public void Initialize(ServerContext context, Type bootstrapper, string[] args) {
			try {
				this.Connection.Initialize(bootstrapper, context, args);
			} catch (Exception ex) {
				Logger.Error(ex, "Failed to initialize host process");
			}
		}
Esempio n. 2
0
 public void Initialize(ServerContext context, Type bootstrapper, string[] args)
 {
     try {
         this.Connection.Initialize(bootstrapper, context, args);
     } catch (Exception ex) {
         Logger.Error(ex, "Failed to initialize host process");
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Creates the <see cref="Contract.IBootstrapper"/> instance.
 /// </summary>
 public void Initialize(ServerContext context, Contract.Type bootstrapperType, string[] args)
 {
     Logger.Initialize("log4net.config");
     Logger.Info(this, "Initializing " + bootstrapperType.FullName + "...");
     this._bootstrapper = ReflectionHelper.CreateInstance <IBootstrapper>(AppDomain.CurrentDomain, bootstrapperType);
     this._bootstrapper.Initialize(context, args);
     Logger.Info(this, "Initialized " + bootstrapperType.FullName);
 }
Esempio n. 4
0
 public void Initialize(ServerContext context, Type bootstrapper, string[] args)
 {
     this._runner.Initialize(context, bootstrapper, args);
 }
Esempio n. 5
0
 public AppDomainApplicationHost(string binFolder, string assembly)
 {
     this._appDomain = ReflectionHelper.LoadAppDomain(binFolder, assembly);
     this._runner    = ReflectionHelper.CreateInstance <Runner>(this._appDomain, Type.FromType(typeof(Runner)));
 }
		public void Initialize(ServerContext context, Type bootstrapper, string[] args) {
			this._runner.Initialize(context, bootstrapper, args);
		}