Skip to content

Reference

OpcServer Class

Represents an OPC UA server which provides the address space defined by its NodeManagers to its clients.

Reference

OpcServer Class ​

Namespace
Opc.UaFx.Server
Assembly
Opc.UaFx.Advanced.dll
Package
Opc.UaFx.Advanced v2.59.0
Members
OpcServer Members

Represents an OPC UA server which provides the address space defined by its NodeManagers to its clients.

Syntax ​

csharp
public class OpcServer : OpcServerBase
vbnet
Public Class OpcServer
    Inherits OpcServerBase

Inheritance ​

Object → OpcApplicationInstance<OpcTransport, OpcServerSecurity> → OpcServerBase → OpcServer

Implements ​

Constructors ​

NameDescription
OpcServer18 overloadsInitializes a new instance of the OpcServer class using the DefaultAddress.

Fields ​

NameDescription
DefaultAddressstaticDefines the default address (opc.tcp://localhost:4840) used by the constructors of the OpcServer which do not take an address.

Properties ​

NameDescription
DefaultNodeManagerGets the node manager used as the default node manager of the OpcServer.
DiagnosticsGets the diagnostic summary information of the OpcServer.
Discoverysince v2.58Gets the settings the OpcServer uses to make itself known to discovery servers.
EstimatedReturnTimesince v2.51Gets or sets a value indicating the time at which the OpcServer is expected to be running.
Globalizationsince v2.11Gets the OpcServerGlobalization instance used to control the localization and other globalization related tasks.
NodeManagersGets the node managers which provide the address space of the OpcServer.
OperationLimitssince v2.50Gets the OpcOperationLimits instance used to maintain the different operation limits used by the server.
SystemContextoverrideGets the OpcContext which is used to store the context sensitive data and configuration used by the current OpcServer instance.
UseDynamicsince v2.53Gets or sets a value indicating whether the current OpcServer shall use generic types to represent dynamically defined custom types.

Methods ​

NameDescription
CreateConfigurationprotected · overrideCreates the configuration of the OpcServer based on the configuration created by the base class.
CreateOperationLimitsprotected · since v2.50Creates and initializes a new instance of the OpcOperationLimits which is used for the OperationLimits property.
GetDataType6 overloads · since v2.22Retrieves the OpcDataTypeInfo object which is known under the name specified.
GetDataTypessince v2.22Retrieves all OpcDataTypeInfo objects offered by the IOpcTypeProvider.
GetDataTypeSystemssince v2.22Retrieves the systems used to describe the data exchanged via OPC UA.
GetEndpointsRetrieves the endpoints provided by the OpcServer.
GetNodeType4 overloads · since v2.50Retrieves the OpcNodeTypeInfo object which is known under the name specified.
GetNodeTypessince v2.50Retrieves all OpcNodeTypeInfo objects offered by the IOpcTypeProvider.
GetNodeTypeSystemsince v2.50Retrieves the system used to describe the structural organisation via OPC UA.
GetSessionsince v2.11Retrieves the OpcSession associated with the sessionId specified.
GetSessionsRetrieves all currently known sessions created on the current OpcServer.
GetSubscriptionssince v2.50Retrieves all currently known subscriptions created on the current OpcServer.
OnCertificateChangedprotected · virtual · since v2.53Raises the CertificateChanged event of the OpcServer.
OnRequestJudgementprotected · virtual · since v2.19Raises the RequestJudgement event of the OpcServer.
OnRequestProcessedprotected · virtual · since v2.7Raises the RequestProcessed event of the OpcServer.
OnRequestProcessingprotected · virtual · since v2.7Raises the RequestProcessing event of the OpcServer.
OnRequestValidatedprotected · virtual · since v2.7Raises the RequestValidated event of the OpcServer.
OnRequestValidatingprotected · virtual · since v2.7Raises the RequestValidating event of the OpcServer.
OnSessionActivatedprotected · virtualRaises the SessionActivated event of the OpcServer.
OnSessionActivatingprotected · virtualRaises the SessionActivating event of the OpcServer.
OnSessionActivationFailedprotected · virtual · since v2.58Raises the SessionActivationFailed event.
OnSessionClosedprotected · virtualRaises the SessionClosed event of the OpcServer.
OnSessionClosingprotected · virtualRaises the SessionClosing event of the OpcServer.
OnSessionCreatedprotected · virtualRaises the SessionCreated event of the OpcServer.
OnSessionCreatingprotected · virtualRaises the SessionCreating event of the OpcServer.
OnSubscriptionCreatedprotected · virtualRaises the SubscriptionCreated event of the OpcServer.
OnSubscriptionDeletedprotected · virtualRaises the SubscriptionDeleted event of the OpcServer.
OnTypeResolveprotected · virtual · since v2.53Raises the TypeResolve event of the OpcServer.
RegisterNamespace3 overloads · since v2.50Registers the namespaceUri specified in the namespace table of the OpcServer unless it is already registered.
RegisterNamespaces6 overloads · since v2.50Registers each of the namespaces specified by the namespaceUris in the namespace table of the OpcServer unless it is already registered.
ReportEvent7 overloadsProduces a global event using the eventNode specified.
ResumeCoreprotected · override · since v2.11Resumes the suspended server by setting the state of its underlying server instance to running.
StartCoreprotected · overrideStarts the server using the configuration specified.
StopCoreprotected · overrideStops the server.
SuspendCoreprotected · override · since v2.11Suspends the server by setting the state of its underlying server instance to suspended.

Events ​

NameDescription
CertificateChangedsince v2.53Occurs when a new certificate has been assigned to the OpcServer through a OpcSession using an identity which is in the role SecurityAdmin.
RequestJudgementsince v2.19Occurs when the validation of a request does not fulfill the requirements for a valid request.
RequestProcessedsince v2.7Occurs after the server processed a request, whether it succeeded or failed.
RequestProcessingsince v2.7Occurs as soon as the server received a request, before it checks the session and the user and before it decodes the request into the type of its service.
RequestValidatedsince v2.7Occurs after a request passed the validation, including the RequestValidating event, and right before the server processes it.
RequestValidatingsince v2.7Occurs after the server checked the session and the user of a request and before it processes the request.
SessionActivatedOccurs when a session of the OpcServer has been activated.
SessionActivatingOccurs when a session of the OpcServer is about to be activated.
SessionActivationFailedsince v2.58Occurs when the server rejects the activation of a session.
SessionClosedOccurs when a session of the OpcServer has been closed.
SessionClosingOccurs when a session of the OpcServer is about to be closed.
SessionCreatedOccurs when a new session has been created on the OpcServer.
SessionCreatingOccurs when a new session is about to be created on the OpcServer.
SubscriptionCreatedOccurs when a new subscription is created through a OpcSession.
SubscriptionDeletedOccurs when an existing subscription of a OpcSession has been deleted.
TypeResolvesince v2.53Occurs before the resolution of a data type takes place.

Inherits members from OpcServerBase, OpcApplicationInstance<OpcTransport, OpcServerSecurity>.

Applies to ​

PackageVersions
Opc.UaFx.Advancedv2.5–v2.59