C# Class Opc.Ua.Com.Server.ComProxy

A base class for classes that implement an OPC COM specification.
Inheritance: IDisposable
Afficher le fichier Open project: OPCFoundation/UA-.NETStandardLibrary

Méthodes publiques

Méthode Description
ComProxy ( ) : System

Initializes a new instance of the ComProxy class.

Dispose ( ) : void

Frees any unmanaged resources.

GetAvailableLocaleIds ( ) : int[]

Returns the available locales.

GetLocaleId ( ) : int

Gets the current locale.

Load ( System.Guid clsid, ApplicationConfiguration configuration ) : void

Called when the object is loaded by the COM process.

SetLocaleId ( int localeId ) : void

Sets the current locale.

Unload ( ) : void

Unloads this instance.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

LoadConfiguredEndpoint ( System.Guid clsid ) : ConfiguredEndpoint

Reads the UA endpoint information associated the CLSID

OnReconnectInProgress ( int secondsToReconnect ) : void

Called when a session reconnect is scheduled.

OnSessionCreated ( ) : void

Called when a new session is created.

OnSessionReconected ( ) : void

Called when a session is reconnected.

OnSessionRemoved ( ) : void

Called when a session is removed.

SaveConfiguration ( ) : void

Saves the current endpoint configuration.

SaveConfiguredEndpoint ( System.Guid clsid, ConfiguredEndpoint endpoint ) : void

Saves the UA endpoint information associated the CLSID.

ThrowIfNotConnected ( ) : Session

Throws if disposed or not connected.

Private Methods

Méthode Description
Connect ( System.Guid clsid ) : Task

Connects to the UA server identfied by the CLSID.

OnCreateSession ( object state ) : void

Creates a session with the server.

OnReconnectSession ( object state ) : void

Creates a session with the server.

Session_KeepAlive ( Session session, KeepAliveEventArgs e ) : void

The session the keep alive handler.

Method Details

ComProxy() public méthode

Initializes a new instance of the ComProxy class.
public ComProxy ( ) : System
Résultat System

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

GetAvailableLocaleIds() public méthode

Returns the available locales.
public GetAvailableLocaleIds ( ) : int[]
Résultat int[]

GetLocaleId() public méthode

Gets the current locale.
public GetLocaleId ( ) : int
Résultat int

Load() public méthode

Called when the object is loaded by the COM process.
public Load ( System.Guid clsid, ApplicationConfiguration configuration ) : void
clsid System.Guid The CLSID used to activate the server.
configuration ApplicationConfiguration The application configuration for the COM process.
Résultat void

LoadConfiguredEndpoint() protected méthode

Reads the UA endpoint information associated the CLSID
protected LoadConfiguredEndpoint ( System.Guid clsid ) : ConfiguredEndpoint
clsid System.Guid The CLSID used to activate the COM server.
Résultat ConfiguredEndpoint

OnReconnectInProgress() protected méthode

Called when a session reconnect is scheduled.
protected OnReconnectInProgress ( int secondsToReconnect ) : void
secondsToReconnect int
Résultat void

OnSessionCreated() protected méthode

Called when a new session is created.
protected OnSessionCreated ( ) : void
Résultat void

OnSessionReconected() protected méthode

Called when a session is reconnected.
protected OnSessionReconected ( ) : void
Résultat void

OnSessionRemoved() protected méthode

Called when a session is removed.
protected OnSessionRemoved ( ) : void
Résultat void

SaveConfiguration() protected méthode

Saves the current endpoint configuration.
protected SaveConfiguration ( ) : void
Résultat void

SaveConfiguredEndpoint() protected méthode

Saves the UA endpoint information associated the CLSID.
protected SaveConfiguredEndpoint ( System.Guid clsid, ConfiguredEndpoint endpoint ) : void
clsid System.Guid The CLSID used to activate the COM server.
endpoint ConfiguredEndpoint The endpoint.
Résultat void

SetLocaleId() public méthode

Sets the current locale.
public SetLocaleId ( int localeId ) : void
localeId int
Résultat void

ThrowIfNotConnected() protected méthode

Throws if disposed or not connected.
protected ThrowIfNotConnected ( ) : Session
Résultat Opc.Ua.Client.Session

Unload() public méthode

Unloads this instance.
public Unload ( ) : void
Résultat void