C# 클래스 Opc.Ua.Com.Client.ComClientManager

Manages the COM connections used by the UA server.
상속: IDisposable
파일 보기 프로젝트 열기: OPCFoundation/UA-.NET 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
OnDisposeClient ( object state ) : void

Called when a misbehaving client object needs to be disposed.

OnStatusTimerExpired ( object state ) : void

Called when thes status timer expires.

메소드 상세

ComClientManager() 공개 메소드

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

CreateClient() 보호된 메소드

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

Dispose() 공개 메소드

Frees any unmanaged resources.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

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

GetLocalizedClient() 공개 메소드

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.
리턴 ComClient

GetLocalizedClient() 공개 메소드

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.
리턴 ComClient

Initialize() 공개 메소드

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
리턴 void

SelectClient() 공개 메소드

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.
리턴 ComClient

StartStatusTimer() 보호된 메소드

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

UpdateStatus() 보호된 메소드

Updates the status node.
protected UpdateStatus ( ) : bool
리턴 bool