C# Class Opc.Ua.Server.Session

A generic session manager object for a server.
Inheritance: IDisposable
Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Private Properties

Свойство Type Description
InitializeSessionAuditEvent void
OnUpdateDiagnostics ServiceResult
OnUpdateSecurityDiagnostics ServiceResult
ReportAuditActivateSessionEvent void
ReportAuditCreateSessionEvent void
Session System
TraceState void
UpdateDiagnosticCounters void
UpdateUserIdentity bool
ValidateUserIdentityToken UserIdentityToken

Méthodes publiques

Méthode Description
Activate ( OperationContext context, List clientSoftwareCertificates, UserIdentityToken identityToken, IUserIdentity identity, IUserIdentity effectiveIdentity, StringCollection localeIds, byte serverNonce ) : bool

Activates the session and binds it to the current secure channel.

Close ( ) : void

Closes a session and removes itself from the address space.

Dispose ( ) : void

Frees any unmanaged resources.

IsSecureChannelValid ( string secureChannelId ) : bool

Checks if the secure channel is currently valid.

RestoreContinuationPoint ( byte continuationPoint ) : ContinuationPoint

Restores a continuation point for a session.

The caller is responsible for disposing the continuation point returned.

RestoreHistoryContinuationPoint ( byte continuationPoint ) : object

Restores a previously saves history continuation point.

SaveContinuationPoint ( ContinuationPoint continuationPoint ) : void

Saves a continuation point for a session.

If the session has too many continuation points the oldest one is dropped.

SaveHistoryContinuationPoint ( System.Guid id, object continuationPoint ) : void

Saves a continuation point used for historical reads.

If the continuationPoint implements IDisposable it will be disposed when the Session is closed or discarded.

UpdateLocaleIds ( StringCollection localeIds ) : bool

Updates the requested locale ids.

ValidateBeforeActivate ( OperationContext context, SignatureData clientSignature, List clientSoftwareCertificates, ExtensionObject userIdentityToken, SignatureData userTokenSignature, StringCollection localeIds, byte serverNonce, UserIdentityToken &identityToken, UserTokenPolicy &userTokenPolicy ) : void

Activates the session and binds it to the current secure channel.

ValidateRequest ( RequestHeader requestHeader, RequestType requestType ) : void

Validates the request.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Private Methods

Méthode Description
InitializeSessionAuditEvent ( ServerSystemContext systemContext, AuditEventState e, TranslationInfo message ) : void

Initializes a session audit event.

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

Returns a copy of the current diagnostics.

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

Returns a copy of the current security diagnostics.

ReportAuditActivateSessionEvent ( ServerSystemContext context ) : void

Reports an audit activate session event.

ReportAuditCreateSessionEvent ( ServerSystemContext context ) : void

Reports an audit create session event.

Session ( OperationContext context, IServerInternal server, X509Certificate2 serverCertificate, NodeId authenticationToken, byte serverNonce, string sessionName, ApplicationDescription clientDescription, string endpointUrl, X509Certificate2 clientCertificate, double sessionTimeout, uint maxResponseMessageSize, double maxRequestAge, int maxBrowseContinuationPoints, int maxHistoryContinuationPoints ) : System
TraceState ( string context ) : void

Dumps the current state of the session queue.

UpdateDiagnosticCounters ( RequestType requestType, bool error, bool authorizationError ) : void
UpdateUserIdentity ( UserIdentityToken identityToken, IUserIdentity identity, IUserIdentity effectiveIdentity ) : bool

Updates the user identity.

ValidateUserIdentityToken ( ExtensionObject identityToken, SignatureData userTokenSignature, UserTokenPolicy &policy ) : UserIdentityToken

Validates the identity token supplied by the client.

Method Details

Activate() public méthode

Activates the session and binds it to the current secure channel.
public Activate ( OperationContext context, List clientSoftwareCertificates, UserIdentityToken identityToken, IUserIdentity identity, IUserIdentity effectiveIdentity, StringCollection localeIds, byte serverNonce ) : bool
context OperationContext
clientSoftwareCertificates List
identityToken UserIdentityToken
identity IUserIdentity
effectiveIdentity IUserIdentity
localeIds StringCollection
serverNonce byte
Résultat bool

Close() public méthode

Closes a session and removes itself from the address space.
public Close ( ) : void
Résultat void

Dispose() public méthode

Frees any unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

IsSecureChannelValid() public méthode

Checks if the secure channel is currently valid.
public IsSecureChannelValid ( string secureChannelId ) : bool
secureChannelId string
Résultat bool

RestoreContinuationPoint() public méthode

Restores a continuation point for a session.
The caller is responsible for disposing the continuation point returned.
public RestoreContinuationPoint ( byte continuationPoint ) : ContinuationPoint
continuationPoint byte
Résultat ContinuationPoint

RestoreHistoryContinuationPoint() public méthode

Restores a previously saves history continuation point.
public RestoreHistoryContinuationPoint ( byte continuationPoint ) : object
continuationPoint byte The identifier for the continuation point.
Résultat object

SaveContinuationPoint() public méthode

Saves a continuation point for a session.
If the session has too many continuation points the oldest one is dropped.
public SaveContinuationPoint ( ContinuationPoint continuationPoint ) : void
continuationPoint ContinuationPoint
Résultat void

SaveHistoryContinuationPoint() public méthode

Saves a continuation point used for historical reads.
If the continuationPoint implements IDisposable it will be disposed when the Session is closed or discarded.
public SaveHistoryContinuationPoint ( System.Guid id, object continuationPoint ) : void
id System.Guid The identifier for the continuation point.
continuationPoint object The continuation point.
Résultat void

UpdateLocaleIds() public méthode

Updates the requested locale ids.
public UpdateLocaleIds ( StringCollection localeIds ) : bool
localeIds StringCollection
Résultat bool

ValidateBeforeActivate() public méthode

Activates the session and binds it to the current secure channel.
public ValidateBeforeActivate ( OperationContext context, SignatureData clientSignature, List clientSoftwareCertificates, ExtensionObject userIdentityToken, SignatureData userTokenSignature, StringCollection localeIds, byte serverNonce, UserIdentityToken &identityToken, UserTokenPolicy &userTokenPolicy ) : void
context OperationContext
clientSignature SignatureData
clientSoftwareCertificates List
userIdentityToken ExtensionObject
userTokenSignature SignatureData
localeIds StringCollection
serverNonce byte
identityToken UserIdentityToken
userTokenPolicy UserTokenPolicy
Résultat void

ValidateRequest() public méthode

Validates the request.
public ValidateRequest ( RequestHeader requestHeader, RequestType requestType ) : void
requestHeader RequestHeader
requestType RequestType
Résultat void