C# Class Quickstarts.ReferenceServer.ReferenceServer

Implements a basic Quickstart Server.
Each server instance must have one instance of a StandardServer object which is responsible for reading the configuration file, creating the endpoints and dispatching incoming requests to the appropriate handler. This sub-class specifies non-configurable metadata such as Product Name and initializes the EmptyNodeManager which provides access to the data exposed by the Server.
Inheritance: Opc.Ua.Server.StandardServer
Show file Open project: OPCFoundation/UA-.NET Class Usage Examples

Protected Methods

Method Description
CreateMasterNodeManager ( IServerInternal server, ApplicationConfiguration configuration ) : MasterNodeManager

Creates the node managers for the server.

This method allows the sub-class create any additional node managers which it uses. The SDK always creates a CoreNodeManager which handles the built-in nodes defined by the specification. Any additional NodeManagers are expected to handle application specific nodes.

CreateResourceManager ( IServerInternal server, ApplicationConfiguration configuration ) : ResourceManager

Creates the resource manager for the server.

LoadServerProperties ( ) : ServerProperties

Loads the non-configurable properties for the application.

These properties are exposed by the server but cannot be changed by administrators.

OnServerStarted ( IServerInternal server ) : void

Called after the server has been started.

Private Methods

Method Description
SessionManager_ImpersonateUser ( Session session, ImpersonateEventArgs args ) : void

Called when a client tries to change its user identity.

VerifyPassword ( string userName, string password ) : void

Validates the password for a username token.

Method Details

CreateMasterNodeManager() protected method

Creates the node managers for the server.
This method allows the sub-class create any additional node managers which it uses. The SDK always creates a CoreNodeManager which handles the built-in nodes defined by the specification. Any additional NodeManagers are expected to handle application specific nodes.
protected CreateMasterNodeManager ( IServerInternal server, ApplicationConfiguration configuration ) : MasterNodeManager
server IServerInternal
configuration ApplicationConfiguration
return Opc.Ua.Server.MasterNodeManager

CreateResourceManager() protected method

Creates the resource manager for the server.
protected CreateResourceManager ( IServerInternal server, ApplicationConfiguration configuration ) : ResourceManager
server IServerInternal
configuration ApplicationConfiguration
return Opc.Ua.Server.ResourceManager

LoadServerProperties() protected method

Loads the non-configurable properties for the application.
These properties are exposed by the server but cannot be changed by administrators.
protected LoadServerProperties ( ) : ServerProperties
return Opc.Ua.ServerProperties

OnServerStarted() protected method

Called after the server has been started.
protected OnServerStarted ( IServerInternal server ) : void
server IServerInternal
return void