C# Класс Opc.Ua.Server.ServerInternalData

A class that stores the globally accessible state of a server instance.
This is a readonly class that is initialized when the server starts up. It provides access to global objects and data that different parts of the server may require. It also defines some global methods. This object is constructed is three steps: - the configuration is provided. - the node managers et. al. are provided. - the session/subscription managers are provided. The server is not running until all three steps are complete. The references returned from this object do not change after all three states are complete. This ensures the object is thread safe even though it does not use a lock. Objects returned from this object can be assumed to be threadsafe unless otherwise stated.
Наследование: IServerInternal, IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateServerObject void
OnReadDiagnosticsEnabledFlag ServiceResult
OnReadNamespaceArray ServiceResult
OnReadServerArray ServiceResult
OnReadServerStatus void
OnUpdateDiagnostics ServiceResult

Открытые методы

Метод Описание
CloseSession ( OperationContext context, NodeId sessionId, bool deleteSubscriptions ) : void

Closes the specified session.

ConditionRefresh ( OperationContext context, uint subscriptionId ) : void

Refreshes the conditions for the specified subscription.

CreateServerObject ( EventManager eventManager, ResourceManager resourceManager, RequestManager requestManager ) : void

Sets the EventManager, the ResourceManager, the RequestManager and the AggregateManager.

DeleteSubscription ( uint subscriptionId ) : void

Deletes the specified subscription.

Dispose ( ) : void

Frees any unmanaged resources.

ReportEvent ( IFilterTarget e ) : void

Called by any component to report a global event.

ReportEvent ( ISystemContext context, IFilterTarget e ) : void

Called by any component to report a global event.

ServerInternalData ( ServerProperties serverDescription, ApplicationConfiguration configuration, ServiceMessageContext messageContext, CertificateValidator certificateValidator, X509Certificate2 instanceCertificate ) : System

Initializes the datastore with the server configuration.

SetNodeManager ( MasterNodeManager nodeManager ) : void

Stores the MasterNodeManager and the CoreNodeManager

SetSessionManager ( SessionManager sessionManager, SubscriptionManager subscriptionManager ) : void

Stores the SessionManager, the SubscriptionManager in the datastore.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Приватные методы

Метод Описание
CreateServerObject ( ) : void

Creates the ServerObject and attaches it to the NodeManager.

OnReadDiagnosticsEnabledFlag ( ISystemContext context, NodeState node, object &value ) : ServiceResult

Returns a copy of the server array.

OnReadNamespaceArray ( ISystemContext context, NodeState node, object &value ) : ServiceResult

Returns a copy of the namespace array.

OnReadServerArray ( ISystemContext context, NodeState node, object &value ) : ServiceResult

Returns a copy of the server array.

OnReadServerStatus ( ISystemContext context, BaseVariableValue variable, NodeState component ) : void

Updates the server status before a read.

OnUpdateDiagnostics ( ISystemContext context, NodeState node, object &value ) : ServiceResult

Returns a copy of the current diagnostics.

Описание методов

CloseSession() публичный Метод

Closes the specified session.
public CloseSession ( OperationContext context, NodeId sessionId, bool deleteSubscriptions ) : void
context OperationContext The context.
sessionId NodeId The session identifier.
deleteSubscriptions bool if set to true subscriptions are to be deleted.
Результат void

ConditionRefresh() публичный Метод

Refreshes the conditions for the specified subscription.
public ConditionRefresh ( OperationContext context, uint subscriptionId ) : void
context OperationContext The context.
subscriptionId uint The subscription identifier.
Результат void

CreateServerObject() публичный Метод

Sets the EventManager, the ResourceManager, the RequestManager and the AggregateManager.
public CreateServerObject ( EventManager eventManager, ResourceManager resourceManager, RequestManager requestManager ) : void
eventManager EventManager The event manager.
resourceManager ResourceManager The resource manager.
requestManager RequestManager The request manager.
Результат void

DeleteSubscription() публичный Метод

Deletes the specified subscription.
public DeleteSubscription ( uint subscriptionId ) : void
subscriptionId uint The subscription identifier.
Результат void

Dispose() публичный Метод

Frees any unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

ReportEvent() публичный Метод

Called by any component to report a global event.
public ReportEvent ( IFilterTarget e ) : void
e IFilterTarget The event.
Результат void

ReportEvent() публичный Метод

Called by any component to report a global event.
public ReportEvent ( ISystemContext context, IFilterTarget e ) : void
context ISystemContext The context.
e IFilterTarget The event.
Результат void

ServerInternalData() публичный Метод

Initializes the datastore with the server configuration.
public ServerInternalData ( ServerProperties serverDescription, ApplicationConfiguration configuration, ServiceMessageContext messageContext, CertificateValidator certificateValidator, X509Certificate2 instanceCertificate ) : System
serverDescription ServerProperties The server description.
configuration ApplicationConfiguration The configuration.
messageContext ServiceMessageContext The message context.
certificateValidator CertificateValidator The certificate validator.
instanceCertificate System.Security.Cryptography.X509Certificates.X509Certificate2 The instance certificate.
Результат System

SetNodeManager() публичный Метод

Stores the MasterNodeManager and the CoreNodeManager
public SetNodeManager ( MasterNodeManager nodeManager ) : void
nodeManager MasterNodeManager The node manager.
Результат void

SetSessionManager() публичный Метод

Stores the SessionManager, the SubscriptionManager in the datastore.
public SetSessionManager ( SessionManager sessionManager, SubscriptionManager subscriptionManager ) : void
sessionManager SessionManager The session manager.
subscriptionManager SubscriptionManager The subscription manager.
Результат void