C# Класс Opc.Ua.Com.Server.ComProxy

A base class for classes that implement an OPC COM specification.
Наследование: IDisposable
Показать файл Открыть проект

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

Метод Описание
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.

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

Метод Описание
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.

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

Метод Описание
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.

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

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

Initializes a new instance of the ComProxy class.
public ComProxy ( ) : System
Результат System

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

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

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

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

Returns the available locales.
public GetAvailableLocaleIds ( ) : int[]
Результат int[]

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

Gets the current locale.
public GetLocaleId ( ) : int
Результат int

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

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.
Результат void

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

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.
Результат ConfiguredEndpoint

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

Called when a session reconnect is scheduled.
protected OnReconnectInProgress ( int secondsToReconnect ) : void
secondsToReconnect int
Результат void

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

Called when a new session is created.
protected OnSessionCreated ( ) : void
Результат void

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

Called when a session is reconnected.
protected OnSessionReconected ( ) : void
Результат void

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

Called when a session is removed.
protected OnSessionRemoved ( ) : void
Результат void

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

Saves the current endpoint configuration.
protected SaveConfiguration ( ) : void
Результат void

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

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.
Результат void

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

Sets the current locale.
public SetLocaleId ( int localeId ) : void
localeId int
Результат void

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

Throws if disposed or not connected.
protected ThrowIfNotConnected ( ) : Session
Результат Opc.Ua.Client.Session

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

Unloads this instance.
public Unload ( ) : void
Результат void