C# Class Opc.Ua.WcfChannelBase

A base class for WCF channel objects used access UA interfaces
Inheritance: IChannelBase, ITransportChannel
ファイルを表示 Open project: OPCFoundation/UA-.NETStandardLibrary Class Usage Examples

Public Properties

Property Type Description
g_CustomTransportChannel ITransportChannelFactory

Public Methods

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

Begins an asynchronous operation to close the secure channel.

BeginInvokeService ( InvokeServiceMessage request, AsyncCallback callback, object asyncState ) : IAsyncResult

The client side implementation of the BeginInvokeService service contract.

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 any existing secure channel.

CloseChannel ( ) : void

Closes the channel with the server.

CreateUaBinaryChannel ( ApplicationConfiguration configuration, EndpointDescription description, EndpointConfiguration endpointConfiguration, X509Certificate2 clientCertificate, ServiceMessageContext messageContext ) : ITransportChannel

Creates a new UA-binary transport channel if requested. Null otherwise.

Dispose ( ) : void

Frees any unmanaged resources.

EndClose ( IAsyncResult result ) : void

Completes an asynchronous operation to close a communication object.

EndInvokeService ( IAsyncResult result ) : InvokeServiceResponseMessage

The client side implementation of the EndInvokeService service contract.

EndOpen ( IAsyncResult result ) : void

Completes an asynchronous operation to open a communication object.

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.

HandleSoapFault ( System exception ) : ServiceResultException

Converts a FaultException into a ServiceResultException.

Initialize ( Uri url, TransportChannelSettings settings ) : void

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

InvokeService ( InvokeServiceMessage request ) : InvokeServiceResponseMessage

The client side implementation of the InvokeService service contract.

Open ( ) : void

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

OpenChannel ( ) : void

Opens the channel with the server.

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.

ScheduleOutgoingRequest ( IChannelOutgoingRequest request ) : void

Schedules an outgoing request.

SendRequest ( IServiceRequest request ) : IServiceResponse

Sends a request over the secure channel.

WcfChannelBase ( ) : System

Initializes the object with the specified binding and endpoint address.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

OnSendRequest ( object state ) : void

Processes the request.

Private Methods

Method Description
InnerChannel_Opened ( object sender, EventArgs e ) : void

Handles the Opened event of the InnerChannel control.

Method Details

BeginClose() public method

Begins an asynchronous operation to close the secure channel.
public BeginClose ( AsyncCallback callback, object callbackData ) : IAsyncResult
callback AsyncCallback
callbackData object
return IAsyncResult

BeginInvokeService() public abstract method

The client side implementation of the BeginInvokeService service contract.
public abstract BeginInvokeService ( InvokeServiceMessage request, AsyncCallback callback, object asyncState ) : IAsyncResult
request InvokeServiceMessage
callback AsyncCallback
asyncState object
return IAsyncResult

BeginOpen() public method

Begins an asynchronous operation to open a secure channel with the endpoint identified by the URL.
public BeginOpen ( AsyncCallback callback, object callbackData ) : IAsyncResult
callback AsyncCallback
callbackData object
return IAsyncResult

BeginReconnect() public method

Begins an asynchronous operation to close the existing secure channel and open a new one.
public BeginReconnect ( AsyncCallback callback, object callbackData ) : IAsyncResult
callback AsyncCallback
callbackData object
return IAsyncResult

BeginSendRequest() public method

Begins an asynchronous operation to send a request over the secure channel.
public BeginSendRequest ( IServiceRequest request, AsyncCallback callback, object callbackData ) : IAsyncResult
request IServiceRequest
callback AsyncCallback
callbackData object
return IAsyncResult

Close() public method

Closes any existing secure channel.
public Close ( ) : void
return void

CloseChannel() public method

Closes the channel with the server.
public CloseChannel ( ) : void
return void

CreateUaBinaryChannel() public static method

Creates a new UA-binary transport channel if requested. Null otherwise.
public static CreateUaBinaryChannel ( ApplicationConfiguration configuration, EndpointDescription description, EndpointConfiguration endpointConfiguration, X509Certificate2 clientCertificate, ServiceMessageContext messageContext ) : ITransportChannel
configuration ApplicationConfiguration The application configuration.
description EndpointDescription The description for the endpoint.
endpointConfiguration EndpointConfiguration The configuration to use with the endpoint.
clientCertificate System.Security.Cryptography.X509Certificates.X509Certificate2 The client certificate.
messageContext ServiceMessageContext The message context to use when serializing the messages.
return ITransportChannel

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 a communication object.
public EndClose ( IAsyncResult result ) : void
result IAsyncResult
return void

EndInvokeService() public abstract method

The client side implementation of the EndInvokeService service contract.
public abstract EndInvokeService ( IAsyncResult result ) : InvokeServiceResponseMessage
result IAsyncResult
return InvokeServiceResponseMessage

EndOpen() public method

Completes an asynchronous operation to open a communication object.
public EndOpen ( IAsyncResult result ) : void
result IAsyncResult
return void

EndReconnect() public method

Completes an asynchronous operation to close the existing secure channel and open a new one.
public EndReconnect ( IAsyncResult result ) : void
result IAsyncResult
return void

EndSendRequest() public method

Completes an asynchronous operation to send a request over the secure channel.
public EndSendRequest ( IAsyncResult result ) : IServiceResponse
result IAsyncResult
return IServiceResponse

HandleSoapFault() public method

Converts a FaultException into a ServiceResultException.
public HandleSoapFault ( System exception ) : ServiceResultException
exception System
return ServiceResultException

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

InvokeService() public abstract method

The client side implementation of the InvokeService service contract.
public abstract InvokeService ( InvokeServiceMessage request ) : InvokeServiceResponseMessage
request InvokeServiceMessage
return InvokeServiceResponseMessage

OnSendRequest() protected method

Processes the request.
protected OnSendRequest ( object state ) : void
state object IChannelOutgoingRequest object passed to the ScheduleOutgoingRequest method.
return void

Open() public method

Opens a secure channel with the endpoint identified by the URL.
public Open ( ) : void
return void

OpenChannel() public method

Opens the channel with the server.
public OpenChannel ( ) : void
return void

Reconnect() public abstract 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 abstract Reconnect ( ) : void
return void

ScheduleOutgoingRequest() public method

Schedules an outgoing request.
public ScheduleOutgoingRequest ( IChannelOutgoingRequest request ) : void
request IChannelOutgoingRequest The request.
return void

SendRequest() public method

Sends a request over the secure channel.
public SendRequest ( IServiceRequest request ) : IServiceResponse
request IServiceRequest
return IServiceResponse

WcfChannelBase() public method

Initializes the object with the specified binding and endpoint address.
public WcfChannelBase ( ) : System
return System

Property Details

g_CustomTransportChannel public_oe static_oe property

public static ITransportChannelFactory g_CustomTransportChannel
return ITransportChannelFactory