Skip to content

Reference

OpcRequestProcessedEventArgs Members

Provides the event data for the RequestProcessed event.

Reference

OpcRequestProcessedEventArgs Members ​

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

Inherits members from EventArgs.

Constructors ​

OpcRequestProcessedEventArgs ​

Initializes a new instance of the OpcRequestProcessedEventArgs class using the context, request, response and exception specified.

csharp
public OpcRequestProcessedEventArgs(
    OpcContext context,
    IOpcServiceRequest request,
    IOpcServiceResponse response,
    Exception exception)
vbnet
Public Sub New(
    context As OpcContext,
    request As IOpcServiceRequest,
    response As IOpcServiceResponse,
    exception As Exception)

Parameters

NameTypeDescription
contextOpcContextThe OpcContext in which the request has been processed.
requestIOpcServiceRequestThe IOpcServiceRequest processed.
responseIOpcServiceResponseThe IOpcServiceResponse to the request.
exceptionExceptionThe Exception which occurred while processing the request or a null reference (Nothing in Visual Basic) if none occurred.

Exceptions

ExceptionCondition
ArgumentNullExceptionThe context, request or response is a null reference (Nothing in Visual Basic).

Properties ​

Context ​

Gets the context in which the request has been processed.

csharp
public OpcContext Context { get; }
vbnet
Public ReadOnly Property Context As OpcContext

Property value

OpcContext

The OpcContext of the processing.

Exception ​

Gets the exception which occurred while processing the request.

csharp
public Exception Exception { get; }
vbnet
Public ReadOnly Property Exception As Exception

Property value

Exception

The Exception which occurred or a null reference (Nothing in Visual Basic) if none occurred. An exception of the underlying stack is provided as an OpcException.

IsUnsupportedService ​

since v2.58

Gets a value indicating whether the request failed because the server does not offer the service requested. A server listening on the discovery port receives such requests from applications which expect a local discovery server there.

csharp
public bool IsUnsupportedService { get; }
vbnet
Public ReadOnly Property IsUnsupportedService As Boolean

Property value

Boolean

The value true if the request failed with BadServiceUnsupported; otherwise the value false.

Request ​

Gets the request processed.

csharp
public IOpcServiceRequest Request { get; }
vbnet
Public ReadOnly Property Request As IOpcServiceRequest

Property value

IOpcServiceRequest

The IOpcServiceRequest received by the server.

RequestType ​

since v2.58

Gets the type of the request processed. Unlike the request validation events this value is also known for services the server does not offer.

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

Property value

OpcRequestType

One of the members defined by the OpcRequestType enumeration or Generic if the service is not known at all.

Response ​

Gets the response to the request.

csharp
public IOpcServiceResponse Response { get; }
vbnet
Public ReadOnly Property Response As IOpcServiceResponse

Property value

IOpcServiceResponse

The IOpcServiceResponse the server sends to the client.