C# 클래스 Opc.Ua.ClientBase

The client side interface with a UA server.
상속: IDisposable
파일 보기 프로젝트 열기: OPCFoundation/UA-.NETStandardLibrary

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