C# 클래스 Microsoft.AspNet.SignalR.Client.Connection

상속: IConnection
파일 보기 프로젝트 열기: SignalR/SignalR 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ChangeState bool
CreateQueryString string
CreateUserAgentString string
Disconnect void
IConnection bool
IConnection void
IConnection void
IConnection void
IConnection void
Negotiate Task
OnError void
OnMessageReceived void
OnReconnecting void
SetTimeout IDisposable
Start Task
StartTransport Task
Stop void
Stop void
TryParseVersion bool
VerifyProtocolVersion void

공개 메소드들

메소드 설명
AddClientCertificate ( X509Certificate certificate ) : void

Adds a client certificate to the request

Connection ( string url ) : System

Initializes a new instance of the Connection class.

Connection ( string url, string>.IDictionary queryString ) : System

Initializes a new instance of the Connection class.

Connection ( string url, string queryString ) : System

Initializes a new instance of the Connection class.

Dispose ( ) : void

Stop the connection, equivalent to calling connection.stop

Send ( object value ) : Task

Sends an object that will be JSON serialized asynchronously over the connection.

Send ( string data ) : Task

Sends data asynchronously over the connection.

Start ( ) : Task

Starts the Connection.

Start ( IClientTransport transport ) : Task

Starts the Connection.

Stop ( ) : void

Stops the Connection and sends an abort message to the server.

Stop ( Exception error ) : void

Stops the Connection and sends an abort message to the server. The error due to which the connection is being stopped.

Trace ( TraceLevels level, string format ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Stop the connection, equivalent to calling connection.stop

OnClosed ( ) : void
OnSending ( ) : string

비공개 메소드들

메소드 설명
ChangeState ( ConnectionState oldState, ConnectionState newState ) : bool
CreateQueryString ( string>.IDictionary queryString ) : string
CreateUserAgentString ( string client ) : string
Disconnect ( ) : void
IConnection ( ConnectionState oldState, ConnectionState newState ) : bool
IConnection ( ) : void

Stops the Connection without sending an abort message to the server. This function is called after we receive a disconnect message from the server.

IConnection ( Exception error ) : void
IConnection ( IRequest request ) : void
IConnection ( JToken message ) : void
Negotiate ( IClientTransport transport ) : Task
OnError ( Exception error ) : void
OnMessageReceived ( JToken message ) : void
OnReconnecting ( ) : void
SetTimeout ( System.TimeSpan delay, System.Action operation ) : IDisposable
Start ( IHttpClient httpClient ) : Task
StartTransport ( ) : Task
Stop ( Exception error, System.TimeSpan timeout ) : void
Stop ( System.TimeSpan timeout ) : void
TryParseVersion ( string versionString, Version &version ) : bool
VerifyProtocolVersion ( string versionString ) : void

메소드 상세

AddClientCertificate() 공개 메소드

Adds a client certificate to the request
public AddClientCertificate ( X509Certificate certificate ) : void
certificate System.Security.Cryptography.X509Certificates.X509Certificate Client Certificate
리턴 void

Connection() 공개 메소드

Initializes a new instance of the Connection class.
public Connection ( string url ) : System
url string The url to connect to.
리턴 System

Connection() 공개 메소드

Initializes a new instance of the Connection class.
public Connection ( string url, string>.IDictionary queryString ) : System
url string The url to connect to.
queryString string>.IDictionary The query string data to pass to the server.
리턴 System

Connection() 공개 메소드

Initializes a new instance of the Connection class.
public Connection ( string url, string queryString ) : System
url string The url to connect to.
queryString string The query string data to pass to the server.
리턴 System

Dispose() 공개 메소드

Stop the connection, equivalent to calling connection.stop
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Stop the connection, equivalent to calling connection.stop
protected Dispose ( bool disposing ) : void
disposing bool Set this to true to perform the dispose, false to do nothing
리턴 void

OnClosed() 보호된 메소드

protected OnClosed ( ) : void
리턴 void

OnSending() 보호된 메소드

protected OnSending ( ) : string
리턴 string

Send() 공개 메소드

Sends an object that will be JSON serialized asynchronously over the connection.
public Send ( object value ) : Task
value object The value to serialize.
리턴 Task

Send() 공개 메소드

Sends data asynchronously over the connection.
public Send ( string data ) : Task
data string The data to send.
리턴 Task

Start() 공개 메소드

Starts the Connection.
public Start ( ) : Task
리턴 Task

Start() 공개 메소드

Starts the Connection.
public Start ( IClientTransport transport ) : Task
transport IClientTransport The transport to use.
리턴 Task

Stop() 공개 메소드

Stops the Connection and sends an abort message to the server.
public Stop ( ) : void
리턴 void

Stop() 공개 메소드

Stops the Connection and sends an abort message to the server. The error due to which the connection is being stopped.
public Stop ( Exception error ) : void
error System.Exception
리턴 void

Trace() 공개 메소드

public Trace ( TraceLevels level, string format ) : void
level TraceLevels
format string
리턴 void