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

The client side interface with a UA server.
Наследование: IDisposable
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
UpdateRequestHeader void

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

Метод Описание
ClientBase ( ITransportChannel channel ) : System

Intializes the object with a channel and a message context.

Close ( ) : Opc.Ua.StatusCode

Closes the channel.

Dispose ( ) : void

Frees any unmanaged resources.

GetResult ( Opc.Ua.StatusCode statusCode, int index, DiagnosticInfoCollection diagnosticInfos, ResponseHeader responseHeader ) : ServiceResult

Converts a service response to a ServiceResult object.

NewRequestHandle ( ) : uint

Generates a unique request handle.

ValidateDataValue ( Opc.Ua.DataValue value, Type expectedType, int index, DiagnosticInfoCollection diagnosticInfos, ResponseHeader responseHeader ) : ServiceResult

Validates a DataValue returned from the server.

ValidateDiagnosticInfos ( DiagnosticInfoCollection response, IList request ) : void

Validates a response returned by the server.

ValidateResponse ( IList response, IList request ) : void

Validates a response returned by the server.

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

Метод Описание
CloseChannel ( ) : void

Closes the channel.

CreateAuditLogEntry ( IServiceRequest request ) : string

Creates an audit log entry for the request.

Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

DisposeChannel ( ) : void
RequestCompleted ( IServiceRequest request, IServiceResponse response, string serviceName ) : void

Called when a request completes.

UpdateRequestHeader ( IServiceRequest request, bool useDefaults ) : void

Updates the header of a service request.

UpdateRequestHeader ( IServiceRequest request, bool useDefaults, string serviceName ) : void

Updates the header of a service request.

ValidateResponse ( ResponseHeader header ) : void

Throws an exception if a response contains an error.

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

Метод Описание
UpdateRequestHeader ( IServiceRequest request ) : void

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

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

Intializes the object with a channel and a message context.
public ClientBase ( ITransportChannel channel ) : System
channel ITransportChannel The channel.
Результат System

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

Closes the channel.
public Close ( ) : Opc.Ua.StatusCode
Результат Opc.Ua.StatusCode

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

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

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

Creates an audit log entry for the request.
protected CreateAuditLogEntry ( IServiceRequest request ) : string
request IServiceRequest The request.
Результат string

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

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

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

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

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

protected DisposeChannel ( ) : void
Результат void

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

Converts a service response to a ServiceResult object.
public static GetResult ( Opc.Ua.StatusCode statusCode, int index, DiagnosticInfoCollection diagnosticInfos, ResponseHeader responseHeader ) : ServiceResult
statusCode Opc.Ua.StatusCode The status code.
index int The index.
diagnosticInfos DiagnosticInfoCollection The diagnostic information.
responseHeader ResponseHeader The response header.
Результат ServiceResult

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

Generates a unique request handle.
public NewRequestHandle ( ) : uint
Результат uint

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

Called when a request completes.
protected RequestCompleted ( IServiceRequest request, IServiceResponse response, string serviceName ) : void
request IServiceRequest The request.
response IServiceResponse The response.
serviceName string The name of the service.
Результат void

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

Updates the header of a service request.
protected UpdateRequestHeader ( IServiceRequest request, bool useDefaults ) : void
request IServiceRequest The request.
useDefaults bool if set to true use defaults].
Результат void

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

Updates the header of a service request.
protected UpdateRequestHeader ( IServiceRequest request, bool useDefaults, string serviceName ) : void
request IServiceRequest The request.
useDefaults bool if set to true the no request header was provided.
serviceName string The name of the service.
Результат void

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

Validates a DataValue returned from the server.
public static ValidateDataValue ( Opc.Ua.DataValue value, Type expectedType, int index, DiagnosticInfoCollection diagnosticInfos, ResponseHeader responseHeader ) : ServiceResult
value Opc.Ua.DataValue The value.
expectedType System.Type The expected type.
index int The index.
diagnosticInfos DiagnosticInfoCollection The diagnostic information.
responseHeader ResponseHeader The response header.
Результат ServiceResult

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

Validates a response returned by the server.
public static ValidateDiagnosticInfos ( DiagnosticInfoCollection response, IList request ) : void
response DiagnosticInfoCollection The response.
request IList The request.
Результат void

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

Validates a response returned by the server.
public static ValidateResponse ( IList response, IList request ) : void
response IList The response.
request IList The request.
Результат void

ValidateResponse() защищенный статический Метод

Throws an exception if a response contains an error.
protected static ValidateResponse ( ResponseHeader header ) : void
header ResponseHeader The header.
Результат void