C# Класс Opc.Ua.WcfChannelBase

A base class for WCF channel objects used access UA interfaces
Наследование: IChannelBase, ITransportChannel
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
g_CustomTransportChannel ITransportChannelFactory

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

OnSendRequest ( object state ) : void

Processes the request.

Приватные методы

Метод Описание
InnerChannel_Opened ( object sender, EventArgs e ) : void

Handles the Opened event of the InnerChannel control.

Описание методов

BeginClose() публичный Метод

Begins an asynchronous operation to close the secure channel.
public BeginClose ( AsyncCallback callback, object callbackData ) : IAsyncResult
callback AsyncCallback
callbackData object
Результат IAsyncResult

BeginInvokeService() публичный абстрактный Метод

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
Результат IAsyncResult

BeginOpen() публичный Метод

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
Результат IAsyncResult

BeginReconnect() публичный Метод

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
Результат IAsyncResult

BeginSendRequest() публичный Метод

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
Результат IAsyncResult

Close() публичный Метод

Closes any existing secure channel.
public Close ( ) : void
Результат void

CloseChannel() публичный Метод

Closes the channel with the server.
public CloseChannel ( ) : void
Результат void

CreateUaBinaryChannel() публичный статический Метод

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.
Результат ITransportChannel

Dispose() публичный Метод

Frees any unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

EndClose() публичный Метод

Completes an asynchronous operation to close a communication object.
public EndClose ( IAsyncResult result ) : void
result IAsyncResult
Результат void

EndInvokeService() публичный абстрактный Метод

The client side implementation of the EndInvokeService service contract.
public abstract EndInvokeService ( IAsyncResult result ) : InvokeServiceResponseMessage
result IAsyncResult
Результат InvokeServiceResponseMessage

EndOpen() публичный Метод

Completes an asynchronous operation to open a communication object.
public EndOpen ( IAsyncResult result ) : void
result IAsyncResult
Результат void

EndReconnect() публичный Метод

Completes an asynchronous operation to close the existing secure channel and open a new one.
public EndReconnect ( IAsyncResult result ) : void
result IAsyncResult
Результат void

EndSendRequest() публичный Метод

Completes an asynchronous operation to send a request over the secure channel.
public EndSendRequest ( IAsyncResult result ) : IServiceResponse
result IAsyncResult
Результат IServiceResponse

HandleSoapFault() публичный Метод

Converts a FaultException into a ServiceResultException.
public HandleSoapFault ( System exception ) : ServiceResultException
exception System
Результат ServiceResultException

Initialize() публичный Метод

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.
Результат void

InvokeService() публичный абстрактный Метод

The client side implementation of the InvokeService service contract.
public abstract InvokeService ( InvokeServiceMessage request ) : InvokeServiceResponseMessage
request InvokeServiceMessage
Результат InvokeServiceResponseMessage

OnSendRequest() защищенный Метод

Processes the request.
protected OnSendRequest ( object state ) : void
state object IChannelOutgoingRequest object passed to the ScheduleOutgoingRequest method.
Результат void

Open() публичный Метод

Opens a secure channel with the endpoint identified by the URL.
public Open ( ) : void
Результат void

OpenChannel() публичный Метод

Opens the channel with the server.
public OpenChannel ( ) : void
Результат void

Reconnect() публичный абстрактный Метод

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
Результат void

ScheduleOutgoingRequest() публичный Метод

Schedules an outgoing request.
public ScheduleOutgoingRequest ( IChannelOutgoingRequest request ) : void
request IChannelOutgoingRequest The request.
Результат void

SendRequest() публичный Метод

Sends a request over the secure channel.
public SendRequest ( IServiceRequest request ) : IServiceResponse
request IServiceRequest
Результат IServiceResponse

WcfChannelBase() публичный Метод

Initializes the object with the specified binding and endpoint address.
public WcfChannelBase ( ) : System
Результат System

Описание свойств

g_CustomTransportChannel публичное статическое свойство

public static ITransportChannelFactory g_CustomTransportChannel
Результат ITransportChannelFactory