Méthode | Description | |
---|---|---|
Attach ( uint channelId, Socket socket ) : void |
Attaches the channel to an existing socket.
|
|
Reconnect ( |
Handles a reconnect request.
|
|
SendResponse ( uint requestId, IServiceResponse response ) : void |
Sends the response for the specified request.
|
|
SetRequestReceivedCallback ( TcpChannelRequestEventHandler callback ) : void |
Sets the callback used to receive notifications of new events.
|
|
TcpServerChannel ( string contextId, |
Attaches the object to an existing socket.
|
Méthode | Description | |
---|---|---|
ForceChannelFault ( |
Forces the channel into a faulted state as a result of a fatal error.
|
|
ForceChannelFault ( ServiceResult reason ) : void |
Forces the channel into a faulted state as a result of a fatal error.
|
|
ForceChannelFault ( uint statusCode, string format ) : void |
Forces the channel into a faulted state as a result of a fatal error.
|
|
GetNewTokenId ( ) : uint |
Returns a new token id.
|
|
HandleIncomingMessage ( uint messageType, ArraySegment |
Processes an incoming message.
|
|
HandleSocketError ( ServiceResult result ) : void |
Handles a socket error.
|
|
SendErrorMessage ( ServiceResult error ) : void |
Sends an error message over the socket.
|
Méthode | Description | |
---|---|---|
ChannelClosed ( ) : void |
Closes the channel and releases resources.
|
|
Dispose ( bool disposing ) : void | ||
OnChannelReconnected ( object state ) : void |
Called to send queued responses after a reconnect.
|
|
OnCleanup ( object state ) : void |
Called when the channel needs to be cleaned up.
|
|
ProcessCloseSecureChannelRequest ( uint messageType, ArraySegment |
Processes an CloseSecureChannel request message.
|
|
ProcessHelloMessage ( uint messageType, ArraySegment |
||
ProcessOpenSecureChannelRequest ( uint messageType, ArraySegment |
Processes an OpenSecureChannel request message.
|
|
ProcessRequestMessage ( uint messageType, ArraySegment |
Processes a request message.
|
|
SendOpenSecureChannelResponse ( uint requestId, |
Sends an OpenSecureChannel response.
|
|
SendServiceFault ( |
Sends a fault response secured with the symmetric keys.
|
|
SendServiceFault ( uint requestId, ServiceResult fault ) : void |
Sends a fault response secured with the asymmetric keys.
|
|
StartCleanupTimer ( ServiceResult reason ) : void |
Starts a timer that will clean up the channel if it is not opened/re-opened.
|
public Attach ( uint channelId, Socket socket ) : void | ||
channelId | uint | |
socket | Socket | |
Résultat | void |
protected ForceChannelFault ( |
||
exception | ||
defaultCode | uint | |
format | string | |
Résultat | void |
protected ForceChannelFault ( ServiceResult reason ) : void | ||
reason | ServiceResult | |
Résultat | void |
protected ForceChannelFault ( uint statusCode, string format ) : void | ||
statusCode | uint | |
format | string | |
Résultat | void |
protected HandleIncomingMessage ( uint messageType, ArraySegment |
||
messageType | uint | |
messageChunk | ArraySegment |
|
Résultat | bool |
protected HandleSocketError ( ServiceResult result ) : void | ||
result | ServiceResult | |
Résultat | void |
public Reconnect ( |
||
socket | ||
requestId | uint | |
sequenceNumber | uint | |
clientCertificate | ||
token | ||
request | OpenSecureChannelRequest | |
Résultat | void |
protected SendErrorMessage ( ServiceResult error ) : void | ||
error | ServiceResult | |
Résultat | void |
public SendResponse ( uint requestId, IServiceResponse response ) : void | ||
requestId | uint | |
response | IServiceResponse | |
Résultat | void |
public SetRequestReceivedCallback ( TcpChannelRequestEventHandler callback ) : void | ||
callback | TcpChannelRequestEventHandler | |
Résultat | void |
public TcpServerChannel ( string contextId, |
||
contextId | string | |
listener | ||
bufferManager | BufferManager | |
quotas | ||
serverCertificate | ||
endpoints | EndpointDescriptionCollection | |
Résultat | System |