internal DebugController(WorkflowRuntime serviceContainer, string hostName) { if (serviceContainer == null) { throw new ArgumentNullException("serviceContainer"); } try { this.programPublisher = new ProgramPublisher(); } catch { return; } this.serviceContainer = serviceContainer; this.programId = Guid.Empty; this.controllerConduit = null; this.channel = null; this.isZombie = false; this.hostName = hostName; AppDomain.CurrentDomain.ProcessExit += new EventHandler(this.OnDomainUnload); AppDomain.CurrentDomain.DomainUnload += new EventHandler(this.OnDomainUnload); this.serviceContainer.Started += new EventHandler <WorkflowRuntimeEventArgs>(this.Start); this.serviceContainer.Stopped += new EventHandler <WorkflowRuntimeEventArgs>(this.Stop); }
internal DebugController(WorkflowRuntime serviceContainer, string hostName) { if (serviceContainer == null) { throw new ArgumentNullException("serviceContainer"); } try { this.programPublisher = new ProgramPublisher(); } catch { return; } this.serviceContainer = serviceContainer; this.programId = Guid.Empty; this.controllerConduit = null; this.channel = null; this.isZombie = false; this.hostName = hostName; AppDomain.CurrentDomain.ProcessExit += new EventHandler(this.OnDomainUnload); AppDomain.CurrentDomain.DomainUnload += new EventHandler(this.OnDomainUnload); this.serviceContainer.Started += new EventHandler<WorkflowRuntimeEventArgs>(this.Start); this.serviceContainer.Stopped += new EventHandler<WorkflowRuntimeEventArgs>(this.Stop); }
internal DebugController(WorkflowRuntime serviceContainer, string hostName) { if (serviceContainer == null) throw new ArgumentNullException("serviceContainer"); try { this.programPublisher = new ProgramPublisher(); } catch { // If we are unable to create the ProgramPublisher, this means that VS does not exist on this machine, so we can't debug. return; } this.serviceContainer = serviceContainer; this.programId = Guid.Empty; this.controllerConduit = null; this.channel = null; this.isZombie = false; this.hostName = hostName; AppDomain.CurrentDomain.ProcessExit += OnDomainUnload; AppDomain.CurrentDomain.DomainUnload += OnDomainUnload; this.serviceContainer.Started += this.Start; this.serviceContainer.Stopped += this.Stop; }