protected void StartWebAppHost( SingleWebHostTestConfiguration configuration) { if (null == configuration) { throw new ArgumentNullException("configuration"); } this.Config = configuration; this.Server = IisExpress.Start( configuration.WebHostConfig, configuration.AttachDebugger); this.HttpClient = new HttpClient { BaseAddress = new Uri(configuration.ApplicationUri) }; this.Listener = new HttpListenerObservable(configuration.TelemetryListenerUri); this.Listener.Start(); this.EtwSession = new EtwEventSession(); this.EtwSession.Start(); }
public void TestInitialize() { this.applicationDirectory = Path.Combine( Directory.GetCurrentDirectory(), TestWebApplicaionDestPath); Trace.WriteLine("Application directory:" + this.applicationDirectory); this.Listener = new HttpListenerObservable("http://localhost:4002/v2/track/"); this.Listener.Start(); this.EtwSession = new EtwEventSession(); this.EtwSession.Start(); Thread.Sleep(5000); }