C# Class Microsoft.AspNet.SignalR.Tests.Common.Infrastructure.HostedTestFactory

Show file Open project: SignalR/SignalR Class Usage Examples

Public Methods

Method Description
CreateClientTraceWriter ( string testName ) : StreamWriter
CreateHost ( HostType hostType, TransportType transportType, string testName, string url = null ) : ITestHost
CreateHost ( string hostTypeName, string transportName, string testName, string url = null ) : ITestHost
CreateTransport ( TransportType transportType ) : IClientTransport
CreateTransport ( TransportType transportType, IHttpClient client ) : IClientTransport
EnableTracing ( string testName, string logBasePath ) : TextWriterTraceListener

Private Methods

Method Description
StartHttpSysTracing ( string path ) : IDisposable

Method Details

CreateClientTraceWriter() public static method

public static CreateClientTraceWriter ( string testName ) : StreamWriter
testName string
return System.IO.StreamWriter

CreateHost() public static method

public static CreateHost ( HostType hostType, TransportType transportType, string testName, string url = null ) : ITestHost
hostType HostType
transportType TransportType
testName string
url string
return ITestHost

CreateHost() public static method

public static CreateHost ( string hostTypeName, string transportName, string testName, string url = null ) : ITestHost
hostTypeName string
transportName string
testName string
url string
return ITestHost

CreateTransport() public static method

public static CreateTransport ( TransportType transportType ) : IClientTransport
transportType TransportType
return IClientTransport

CreateTransport() public static method

public static CreateTransport ( TransportType transportType, IHttpClient client ) : IClientTransport
transportType TransportType
client IHttpClient
return IClientTransport

EnableTracing() public static method

public static EnableTracing ( string testName, string logBasePath ) : TextWriterTraceListener
testName string
logBasePath string
return System.Diagnostics.TextWriterTraceListener