protected TextWriterTraceListener EnableTracing() { string testName = GetTestName() + "." + Interlocked.Increment(ref _id); string logBasePath = Path.Combine(Directory.GetCurrentDirectory(), ".."); return(HostedTestFactory.EnableTracing(testName, logBasePath)); }
protected void EnableTracing() { string testName = GetTestName() + "." + Interlocked.Increment(ref _id); string logBasePath = Path.Combine(Directory.GetCurrentDirectory(), ".."); HostedTestFactory.EnableTracing(testName, logBasePath); }
protected HubConnection CreateHubConnection(string url) { string testName = GetTestName() + "." + Interlocked.Increment(ref _id); var query = new Dictionary <string, string>(); query["test"] = testName; var connection = new HubConnection(url, query); connection.TraceWriter = HostedTestFactory.CreateClientTraceWriter(testName); return(connection); }
protected HubConnection CreateHubConnection(string url) { string testName = GetTestName() + "." + Interlocked.Increment(ref _id); var query = new Dictionary <string, string>(); query["test"] = testName; var connection = new HubConnection(url, query); connection.TransportConnectTimeout = TimeSpan.FromSeconds(10); // Adds 10 seconds to the server's connect timeout (5 seconds) for a total of 15 seconds. connection.TraceWriter = HostedTestFactory.CreateClientTraceWriter(testName); return(connection); }
protected ITestHost CreateHost(HostType hostType, TransportType transportType) { string detailedTestName = GetTestName() + "." + hostType + "." + transportType + "." + Interlocked.Increment(ref _id); return(HostedTestFactory.CreateHost(hostType, transportType, detailedTestName)); }
protected IClientTransport CreateTransport(TransportType transportType, IHttpClient client) { return(HostedTestFactory.CreateTransport(transportType, client)); }