public static CreateClientTraceWriter ( string testName ) : |
||
testName | string | |
Результат |
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); }