Skip to content

Reference

OpcOperationContext Members

Represents the context of an operation the server performs on behalf of a request of a client.

Reference

OpcOperationContext Members ​

Type
OpcOperationContext
Namespace
Opc.UaFx.Server
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0

Inherits members from OpcContext.

Properties ​

ClientID ​

Gets the handle the client has assigned to the request.

csharp
public long ClientID { get; }
vbnet
Public ReadOnly Property ClientID As Long

Property value

Int64

The request handle of the client or 0 if the context does not belong to a request.

Endpoint ​

Gets the endpoint through which the request has been received.

csharp
public OpcEndpointIdentity Endpoint { get; }
vbnet
Public ReadOnly Property Endpoint As OpcEndpointIdentity

Property value

OpcEndpointIdentity

The OpcEndpointIdentity of the endpoint or a null reference (Nothing in Visual Basic) if the endpoint is not known.

OperationDeadline ​

Gets the time by which the operation is to be completed.

csharp
public DateTime OperationDeadline { get; }
vbnet
Public ReadOnly Property OperationDeadline As Date

Property value

DateTime

The DateTime in UTC derived from the timeout hint of the request or MaxValue if the request specifies no timeout.

OperationStatus ​

Gets the status of the operation.

csharp
public OpcStatus OperationStatus { get; }
vbnet
Public ReadOnly Property OperationStatus As OpcStatus

Property value

OpcStatus

The OpcStatus of the operation.

Remarks

The status provides the status of the operation at the time the context has been created; later changes by the server are not reflected. Changing the code of the status sets the status of the operation; the server checks it while processing the request and aborts the request if it is bad.

PreferredLocales ​

override

Gets a collection of preferred locales (see Name) to use to localize data and information.

csharp
public override OpcLocaleCollection PreferredLocales { get; }
vbnet
Public Overrides ReadOnly Property PreferredLocales As OpcLocaleCollection

Property value

OpcLocaleCollection

An instance of the OpcLocaleCollection class with Names of the cultures to use to localize data and information in order of this OpcOperationContext.

Overrides

PreferredLocales

RequestId ​

since v2.7

Gets the identifier the server has assigned to the request.

csharp
public long RequestId { get; }
vbnet
Public ReadOnly Property RequestId As Long

Property value

Int64

The identifier of the request or 0 if the context does not belong to a request.

RequestType ​

since v2.7

Gets the type of the request.

csharp
public OpcRequestType RequestType { get; }
vbnet
Public ReadOnly Property RequestType As OpcRequestType

Property value

OpcRequestType

One of the members defined by the OpcRequestType enumeration; Generic if the context does not belong to a request.

Session ​

Gets the session in which the request has been received.

csharp
public OpcSession Session { get; }
vbnet
Public ReadOnly Property Session As OpcSession

Property value

OpcSession

The OpcSession of the request or a null reference (Nothing in Visual Basic) if the request does not belong to a session.

SessionId ​

override · since v2.7

Gets the identifier of the session in which the request has been received.

csharp
public override OpcNodeId SessionId { get; }
vbnet
Public Overrides ReadOnly Property SessionId As OpcNodeId

Property value

OpcNodeId

The OpcNodeId of the session or a null reference (Nothing in Visual Basic) if the request does not belong to a session.

Overrides

SessionId

Socket ​

since v2.7

Gets the local and remote endpoints of the connection through which the request has been received.

csharp
public OpcSocketIdentity Socket { get; }
vbnet
Public ReadOnly Property Socket As OpcSocketIdentity

Property value

OpcSocketIdentity

The OpcSocketIdentity of the connection or a null reference (Nothing in Visual Basic) if the endpoints are not known.