C# Class Opc.Ua.Bindings.CustomTransportChannel

Wraps the CustomTransportChannel and provides an ITransportChannel implementation.
Inheritance: ITransportChannel
Afficher le fichier Open project: OPCFoundation/UA-.NETStandardLibrary

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Private Methods

Méthode 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 méthode

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.
Résultat IAsyncResult

BeginOpen() public méthode

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.
Résultat IAsyncResult

BeginReconnect() public méthode

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.
Résultat IAsyncResult

BeginSendRequest() public méthode

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.
Résultat IAsyncResult

Close() public méthode

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

Dispose() public méthode

Frees any unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EndClose() public méthode

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.
Résultat void

EndOpen() public méthode

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.
Résultat void

EndReconnect() public méthode

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.
Résultat void

EndSendRequest() public méthode

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.
Résultat IServiceResponse

Initialize() public méthode

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.
Résultat void

Open() public méthode

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

Reconnect() public méthode

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
Résultat void

SendRequest() public méthode

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