메소드 | 설명 | |
---|---|---|
BeginConnect ( |
Creates a connection with the server.
|
|
BeginSendRequest ( IServiceRequest request, int timeout, AsyncCallback callback, object state ) : IAsyncResult |
Sends a request to the server.
|
|
Close ( int timeout ) : void |
Closes a connection with the server.
|
|
EndConnect ( IAsyncResult result ) : void |
Finishes a connect operation.
|
|
EndSendRequest ( IAsyncResult result ) : IServiceResponse |
Returns the response to a previously sent request.
|
|
TcpClientChannel ( string contextId, BufferManager bufferManager, |
Creates a channel for for a client.
|
메소드 | 설명 | |
---|---|---|
HandleIncomingMessage ( uint messageType, ArraySegment |
Processes an incoming message.
|
|
HandleSocketError ( ServiceResult result ) : void |
Handles a socket error.
|
|
HandleWriteComplete ( BufferCollection buffers, object state, int bytesWritten, ServiceResult result ) : void |
Called when a write operation completes.
|
|
ProcessErrorMessage ( uint messageType, ArraySegment |
Processes an Error message received over the socket.
|
메소드 | 설명 | |
---|---|---|
BeginOperation ( int timeout, AsyncCallback callback, object state ) : WriteOperation |
Creates a object to manage the state of an asynchronous operation.
|
|
Dispose ( bool disposing ) : void | ||
ForceReconnect ( ServiceResult reason ) : void |
Closes the channel and attempts to reconnect.
|
|
OnConnectComplete ( object sender, |
Called when the socket is connected.
|
|
OnConnectOnDemandComplete ( object state ) : void |
Called when the connect operation completes.
|
|
OnHandshakeComplete ( IAsyncResult result ) : void |
Called when a token is renewed.
|
|
OnScheduledHandshake ( object state ) : void |
Called when it is time to do a handshake.
|
|
OperationCompleted ( WriteOperation operation ) : void |
Cleans up after an asychronous operation completes.
|
|
ParseResponse ( BufferCollection chunksToProcess ) : IServiceResponse |
Parses the response return from the server.
|
|
ProcessAcknowledgeMessage ( ArraySegment |
||
ProcessOpenSecureChannelResponse ( uint messageType, ArraySegment |
Processes an OpenSecureChannel response message.
|
|
ProcessResponseMessage ( uint messageType, ArraySegment |
Processes a response message.
|
|
ScheduleTokenRenewal ( |
Schedules the renewal of a token.
|
|
SendCloseSecureChannelRequest ( WriteOperation operation ) : void |
Sends an CloseSecureChannel request message.
|
|
SendHelloMessage ( WriteOperation operation ) : void |
Sends a Hello message.
|
|
SendOpenSecureChannelRequest ( bool renew ) : void |
Sends an OpenSecureChannel request.
|
|
SendRequest ( WriteOperation operation, int timeout, IServiceRequest request ) : void |
Sends a request to the server.
|
|
Shutdown ( ServiceResult reason ) : void |
Cancels all pending requests and closes the channel.
|
public BeginConnect ( |
||
url | ||
timeout | int | |
callback | AsyncCallback | |
state | object | |
리턴 | IAsyncResult |
public BeginSendRequest ( IServiceRequest request, int timeout, AsyncCallback callback, object state ) : IAsyncResult | ||
request | IServiceRequest | |
timeout | int | |
callback | AsyncCallback | |
state | object | |
리턴 | IAsyncResult |
public EndSendRequest ( IAsyncResult result ) : IServiceResponse | ||
result | IAsyncResult | |
리턴 | IServiceResponse |
protected HandleIncomingMessage ( uint messageType, ArraySegment |
||
messageType | uint | |
messageChunk | ArraySegment |
|
리턴 | bool |
protected HandleSocketError ( ServiceResult result ) : void | ||
result | ServiceResult | |
리턴 | void |
protected HandleWriteComplete ( BufferCollection buffers, object state, int bytesWritten, ServiceResult result ) : void | ||
buffers | BufferCollection | |
state | object | |
bytesWritten | int | |
result | ServiceResult | |
리턴 | void |
protected ProcessErrorMessage ( uint messageType, ArraySegment |
||
messageType | uint | |
messageChunk | ArraySegment |
|
리턴 | bool |
public TcpClientChannel ( string contextId, BufferManager bufferManager, |
||
contextId | string | |
bufferManager | BufferManager | |
quotas | ||
clientCertificate | ||
serverCertificate | ||
endpoint | EndpointDescription | |
리턴 | System |