C# Class Opc.Ua.WcfChannelBase

A base class for WCF channel objects used access UA interfaces
Inheritance: IChannelBase, ITransportChannel
Afficher le fichier Open project: OPCFoundation/UA-.NETStandardLibrary Class Usage Examples

Méthodes publiques

Свойство Type Description
g_CustomTransportChannel ITransportChannelFactory

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

OnSendRequest ( object state ) : void

Processes the request.

Private Methods

Méthode Description
InnerChannel_Opened ( object sender, EventArgs e ) : void

Handles the Opened event of the InnerChannel control.

Method Details

BeginClose() public méthode

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

BeginInvokeService() public abstract méthode

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

BeginOpen() public méthode

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

BeginReconnect() public méthode

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

BeginSendRequest() public méthode

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

Close() public méthode

Closes any existing secure channel.
public Close ( ) : void
Résultat void

CloseChannel() public méthode

Closes the channel with the server.
public CloseChannel ( ) : void
Résultat void

CreateUaBinaryChannel() public static méthode

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

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

EndInvokeService() public abstract méthode

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

EndOpen() public méthode

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

EndReconnect() public méthode

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

EndSendRequest() public méthode

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

HandleSoapFault() public méthode

Converts a FaultException into a ServiceResultException.
public HandleSoapFault ( System exception ) : ServiceResultException
exception System
Résultat ServiceResultException

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

InvokeService() public abstract méthode

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

OnSendRequest() protected méthode

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

Open() public méthode

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

OpenChannel() public méthode

Opens the channel with the server.
public OpenChannel ( ) : void
Résultat void

Reconnect() public abstract 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 abstract Reconnect ( ) : void
Résultat void

ScheduleOutgoingRequest() public méthode

Schedules an outgoing request.
public ScheduleOutgoingRequest ( IChannelOutgoingRequest request ) : void
request IChannelOutgoingRequest The request.
Résultat void

SendRequest() public méthode

Sends a request over the secure channel.
public SendRequest ( IServiceRequest request ) : IServiceResponse
request IServiceRequest
Résultat IServiceResponse

WcfChannelBase() public méthode

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

Property Details

g_CustomTransportChannel public_oe static_oe property

public static ITransportChannelFactory g_CustomTransportChannel
Résultat ITransportChannelFactory