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"); } }
/// <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); }
public void Initialize(ServerContext context, Type bootstrapper, string[] args) { this._runner.Initialize(context, bootstrapper, args); }
public AppDomainApplicationHost(string binFolder, string assembly) { this._appDomain = ReflectionHelper.LoadAppDomain(binFolder, assembly); this._runner = ReflectionHelper.CreateInstance <Runner>(this._appDomain, Type.FromType(typeof(Runner))); }