C# Class Opc.Ua.Com.Client.ComClientManager

Manages the COM connections used by the UA server.
Inheritance: IDisposable
ファイルを表示 Open project: OPCFoundation/UA-.NET Class Usage Examples

Public Methods

Method Description
ComClientManager ( ) : System

Initializes a new instance of the ComClientManager class.

Dispose ( ) : void

Frees any unmanaged resources.

GetLocalizedClient ( IUserIdentity identity, IList preferredLocales ) : ComClient

Returns a localized client based on the preferred locales.

GetLocalizedClient ( IUserIdentity identity, int localeId ) : ComClient

Returns a localized client for the specified locale id.

Initialize ( ServerSystemContext context, ComClientConfiguration configuration, ComServerStatusState statusNode, object statusNodeLock, WaitCallback reconnectCallback ) : void

Initializes the manager by creating the default instance.

SelectClient ( ServerSystemContext context, bool useDefault ) : ComClient

Selects the COM client to use for the current context.

Protected Methods

Method Description
CreateClient ( ) : ComClient

Creates a new client object.

Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

StartStatusTimer ( TimerCallback callback ) : void

Starts the status timer.

UpdateStatus ( ) : bool

Updates the status node.

Private Methods

Method Description
OnDisposeClient ( object state ) : void

Called when a misbehaving client object needs to be disposed.

OnStatusTimerExpired ( object state ) : void

Called when thes status timer expires.

Method Details

ComClientManager() public method

Initializes a new instance of the ComClientManager class.
public ComClientManager ( ) : System
return System

CreateClient() protected method

Creates a new client object.
protected CreateClient ( ) : ComClient
return ComClient

Dispose() public method

Frees any unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

An overrideable version of the Dispose.
protected Dispose ( bool disposing ) : void
disposing bool
return void

GetLocalizedClient() public method

Returns a localized client based on the preferred locales.
public GetLocalizedClient ( IUserIdentity identity, IList preferredLocales ) : ComClient
identity IUserIdentity The identity to use.
preferredLocales IList The locales to use.
return ComClient

GetLocalizedClient() public method

Returns a localized client for the specified locale id.
public GetLocalizedClient ( IUserIdentity identity, int localeId ) : ComClient
identity IUserIdentity The identity.
localeId int The locales id.
return ComClient

Initialize() public method

Initializes the manager by creating the default instance.
public Initialize ( ServerSystemContext context, ComClientConfiguration configuration, ComServerStatusState statusNode, object statusNodeLock, WaitCallback reconnectCallback ) : void
context Opc.Ua.Server.ServerSystemContext
configuration ComClientConfiguration
statusNode Opc.Ua.Com.ComServerStatusState
statusNodeLock object
reconnectCallback WaitCallback
return void

SelectClient() public method

Selects the COM client to use for the current context.
public SelectClient ( ServerSystemContext context, bool useDefault ) : ComClient
context Opc.Ua.Server.ServerSystemContext The context.
useDefault bool The whether to use the default context.
return ComClient

StartStatusTimer() protected method

Starts the status timer.
protected StartStatusTimer ( TimerCallback callback ) : void
callback TimerCallback The callback to use when the timer expires.
return void

UpdateStatus() protected method

Updates the status node.
protected UpdateStatus ( ) : bool
return bool