C# Class Opc.Ua.Sample.SampleServer

Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes protégées

Méthode 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. Applications with small address spaces do not need to create their own NodeManagers and can add any application specific nodes to the CoreNodeManager. Applications should use custom NodeManagers when the structure of the address space is stored in another system or when the address space is too large to keep in memory.

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.

OnNodeManagerStarted ( IServerInternal server ) : void

Initializes the address space after the NodeManagers have started.

This method can be used to create any initialization that requires access to node managers.

OnServerStarted ( IServerInternal server ) : void

Called after the server has been started.

OnServerStarting ( ApplicationConfiguration configuration ) : void

Initializes the server before it starts up.

This method is called before any startup processing occurs. The sub-class may update the configuration object or do any other application specific startup tasks.

OnServerStopping ( ) : void

Cleans up before the server shuts down.

This method is called before any shutdown processing occurs.

Private Methods

Méthode Description
CreateSecurityTokenResolver ( CertificateIdentifier issuerCertificate ) : System.IdentityModel.Selectors.SecurityTokenResolver

Initializes the validator from the configuration for a token policy.

CreateUserIdentityValidators ( ApplicationConfiguration configuration ) : void

Creates the objects used to validate the user identity tokens supported by the server.

ParseAndVerifySamlToken ( byte tokenData ) : System.IdentityModel.Tokens.SecurityToken

Validates a SAML WSS user token.

SessionManager_ImpersonateUser ( Session session, ImpersonateEventArgs args ) : void

Called when a client tries to change its user identity.

VerifyCertificate ( X509Certificate2 certificate ) : void

Verifies that a certificate user token is trusted.

VerifyPassword ( string userName, string password ) : void

Validates the password for a username token.

Method Details

CreateMasterNodeManager() protected méthode

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. Applications with small address spaces do not need to create their own NodeManagers and can add any application specific nodes to the CoreNodeManager. Applications should use custom NodeManagers when the structure of the address space is stored in another system or when the address space is too large to keep in memory.
protected CreateMasterNodeManager ( IServerInternal server, ApplicationConfiguration configuration ) : MasterNodeManager
server IServerInternal
configuration ApplicationConfiguration
Résultat Opc.Ua.Server.MasterNodeManager

CreateResourceManager() protected méthode

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

LoadServerProperties() protected méthode

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

OnNodeManagerStarted() protected méthode

Initializes the address space after the NodeManagers have started.
This method can be used to create any initialization that requires access to node managers.
protected OnNodeManagerStarted ( IServerInternal server ) : void
server IServerInternal
Résultat void

OnServerStarted() protected méthode

Called after the server has been started.
protected OnServerStarted ( IServerInternal server ) : void
server IServerInternal
Résultat void

OnServerStarting() protected méthode

Initializes the server before it starts up.
This method is called before any startup processing occurs. The sub-class may update the configuration object or do any other application specific startup tasks.
protected OnServerStarting ( ApplicationConfiguration configuration ) : void
configuration ApplicationConfiguration
Résultat void

OnServerStopping() protected méthode

Cleans up before the server shuts down.
This method is called before any shutdown processing occurs.
protected OnServerStopping ( ) : void
Résultat void