Method | 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.
|
Method | 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.
|
Method | 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 | |
return | void |
protected ForceChannelFault ( |
||
exception | ||
defaultCode | uint | |
format | string | |
return | void |
protected ForceChannelFault ( ServiceResult reason ) : void | ||
reason | ServiceResult | |
return | void |
protected ForceChannelFault ( uint statusCode, string format ) : void | ||
statusCode | uint | |
format | string | |
return | void |
protected HandleIncomingMessage ( uint messageType, ArraySegment |
||
messageType | uint | |
messageChunk | ArraySegment |
|
return | bool |
protected HandleSocketError ( ServiceResult result ) : void | ||
result | ServiceResult | |
return | void |
public Reconnect ( |
||
socket | ||
requestId | uint | |
sequenceNumber | uint | |
clientCertificate | ||
token | ||
request | OpenSecureChannelRequest | |
return | void |
protected SendErrorMessage ( ServiceResult error ) : void | ||
error | ServiceResult | |
return | void |
public SendResponse ( uint requestId, IServiceResponse response ) : void | ||
requestId | uint | |
response | IServiceResponse | |
return | void |
public SetRequestReceivedCallback ( TcpChannelRequestEventHandler callback ) : void | ||
callback | TcpChannelRequestEventHandler | |
return | void |
public TcpServerChannel ( string contextId, |
||
contextId | string | |
listener | ||
bufferManager | BufferManager | |
quotas | ||
serverCertificate | ||
endpoints | EndpointDescriptionCollection | |
return | System |