C# Class Opc.Ua.Bindings.CustomTransportChannel

Wraps the CustomTransportChannel and provides an ITransportChannel implementation.
Inheritance: ITransportChannel
ファイルを表示 Open project: OPCFoundation/UA-.NETStandardLibrary

Public Methods

Method Description
BeginClose ( AsyncCallback callback, object callbackData ) : IAsyncResult

Begins an asynchronous operation to close the secure channel.

BeginOpen ( AsyncCallback callback, object callbackData ) : IAsyncResult

Begins an asynchronous operation to open a secure channel with the endpoint identified by the URL.

BeginReconnect ( AsyncCallback callback, object callbackData ) : IAsyncResult

Begins an asynchronous operation to close the existing secure channel and open a new one.

BeginSendRequest ( IServiceRequest request, AsyncCallback callback, object callbackData ) : IAsyncResult

Begins an asynchronous operation to send a request over the secure channel.

Close ( ) : void

Closes the secure channel.

Dispose ( ) : void

Frees any unmanaged resources.

EndClose ( IAsyncResult result ) : void

Completes an asynchronous operation to close the secure channel.

EndOpen ( IAsyncResult result ) : void

Completes an asynchronous operation to open a secure channel.

EndReconnect ( IAsyncResult result ) : void

Completes an asynchronous operation to close the existing secure channel and open a new one.

EndSendRequest ( IAsyncResult result ) : IServiceResponse

Completes an asynchronous operation to send a request over the secure channel.

Initialize ( Uri url, TransportChannelSettings settings ) : void

Initializes a secure channel with the endpoint identified by the URL.

Open ( ) : void

Opens a secure channel with the endpoint identified by the URL.

Reconnect ( ) : void

Closes any existing secure channel and opens a new one.

Calling this method will cause outstanding requests over the current secure channel to fail.

SendRequest ( IServiceRequest request ) : IServiceResponse

Sends a request over the secure channel.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Private Methods

Method Description
OpenOnDemand ( ) : void

Opens the channel before sending the request.

SaveSettings ( Uri url, TransportChannelSettings settings ) : void

Saves the settings so the channel can be opened later.

Method Details

BeginClose() public method

Begins an asynchronous operation to close the secure channel.
Thrown if any communication error occurs.
public BeginClose ( AsyncCallback callback, object callbackData ) : IAsyncResult
callback AsyncCallback The callback to call when the operation completes.
callbackData object The callback data to return with the callback.
return IAsyncResult

BeginOpen() public method

Begins an asynchronous operation to open a secure channel with the endpoint identified by the URL.
Thrown if any communication error occurs.
public BeginOpen ( AsyncCallback callback, object callbackData ) : IAsyncResult
callback AsyncCallback The callback to call when the operation completes.
callbackData object The callback data to return with the callback.
return IAsyncResult

BeginReconnect() public method

Begins an asynchronous operation to close the existing secure channel and open a new one.
Thrown if any communication error occurs.
public BeginReconnect ( AsyncCallback callback, object callbackData ) : IAsyncResult
callback AsyncCallback The callback to call when the operation completes.
callbackData object The callback data to return with the callback.
return IAsyncResult

BeginSendRequest() public method

Begins an asynchronous operation to send a request over the secure channel.
Thrown if any communication error occurs.
public BeginSendRequest ( IServiceRequest request, AsyncCallback callback, object callbackData ) : IAsyncResult
request IServiceRequest The request to send.
callback AsyncCallback The callback to call when the operation completes.
callbackData object The callback data to return with the callback.
return IAsyncResult

Close() public method

Closes the secure channel.
Thrown if any communication error occurs.
public Close ( ) : void
return void

Dispose() public method

Frees any unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
return void

EndClose() public method

Completes an asynchronous operation to close the secure channel.
Thrown if any communication error occurs.
public EndClose ( IAsyncResult result ) : void
result IAsyncResult The result returned from the BeginClose call.
return void

EndOpen() public method

Completes an asynchronous operation to open a secure channel.
Thrown if any communication error occurs.
public EndOpen ( IAsyncResult result ) : void
result IAsyncResult The result returned from the BeginOpen call.
return void

EndReconnect() public method

Completes an asynchronous operation to close the existing secure channel and open a new one.
Thrown if any communication error occurs.
public EndReconnect ( IAsyncResult result ) : void
result IAsyncResult The result returned from the BeginReconnect call.
return void

EndSendRequest() public method

Completes an asynchronous operation to send a request over the secure channel.
Thrown if any communication error occurs.
public EndSendRequest ( IAsyncResult result ) : IServiceResponse
result IAsyncResult The result returned from the BeginSendRequest call.
return IServiceResponse

Initialize() public method

Initializes a secure channel with the endpoint identified by the URL.
Thrown if any communication error occurs.
public Initialize ( Uri url, TransportChannelSettings settings ) : void
url System.Uri The URL for the endpoint.
settings TransportChannelSettings The settings to use when creating the channel.
return void

Open() public method

Opens a secure channel with the endpoint identified by the URL.
Thrown if any communication error occurs.
public Open ( ) : void
return void

Reconnect() public method

Closes any existing secure channel and opens a new one.
Calling this method will cause outstanding requests over the current secure channel to fail.
Thrown if any communication error occurs.
public Reconnect ( ) : void
return void

SendRequest() public method

Sends a request over the secure channel.
Thrown if any communication error occurs.
public SendRequest ( IServiceRequest request ) : IServiceResponse
request IServiceRequest The request to send.
return IServiceResponse