public BuildService() { this.appHost = new AppHost(this); this.appHost.Init(); this.stopEvent = new AutoResetEvent(false); this.workerThread = new Thread(BuildService.Worker) { Name = "TinyBuild Worker Thread" }; }
/// <summary> /// Clean up any resources being used. /// </summary> /// <param name="disposing">True if managed resources should be disposed; otherwise, false.</param> protected virtual void Dispose(bool disposing) { if (disposing) { if (this.Status < ServiceStatus.Stopping) { this.Stop(Timeout.Infinite); } if (this.appHost != null) { this.appHost.Dispose(); this.appHost = null; } if (this.stopEvent != null) { this.stopEvent.Dispose(); this.stopEvent = null; } GC.SuppressFinalize(this); } }