C# Class Opc.Ua.Com.ServerFactory

A unique identifier for the result of an operation of an item.
Inheritance: IDisposable
Afficher le fichier Open project: OPCFoundation/UA-.NET Class Usage Examples

Méthodes publiques

Méthode Description
CLSIDFromProgID ( string progID ) : System.Guid

Looks up the CLSID for the specified prog id on a remote host.

Connect ( ) : void

Connects to OPCEnum on the local machine.

Connect ( string host, UserIdentity identity ) : void

Connects to OPCEnum on the specified machine.

CreateServer ( Uri uri, UserIdentity identity ) : object

Connects to the specified COM server server.

Disconnect ( ) : void

Releases the active server.

Dispose ( ) : void

Frees any unmanaged resources.

EnumerateHosts ( ) : string[]

Enumerates hosts that may be accessed for server discovery.

GetAvailableServers ( ) : System.Uri[]

Returns a list of servers that support the specified specification.

ParseUrl ( Uri uri ) : ComServerDescription

Parses the URL and fetches the information about the server.

ServerFactory ( ) : System

Initializes an empty instance.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Private Methods

Méthode Description
CreateUri ( System.Guid clsid ) : Uri

Reads the server details from the enumerator.

Initialize ( ) : void

Sets private members to default values.

ReadClasses ( IOPCEnumGUID enumerator ) : List

Reads the guids from the enumerator.

Method Details

CLSIDFromProgID() public méthode

Looks up the CLSID for the specified prog id on a remote host.
public CLSIDFromProgID ( string progID ) : System.Guid
progID string
Résultat System.Guid

Connect() public méthode

Connects to OPCEnum on the local machine.
public Connect ( ) : void
Résultat void

Connect() public méthode

Connects to OPCEnum on the specified machine.
public Connect ( string host, UserIdentity identity ) : void
host string
identity UserIdentity
Résultat void

CreateServer() public méthode

Connects to the specified COM server server.
public CreateServer ( Uri uri, UserIdentity identity ) : object
uri System.Uri
identity UserIdentity
Résultat object

Disconnect() public méthode

Releases the active server.
public Disconnect ( ) : 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

EnumerateHosts() public méthode

Enumerates hosts that may be accessed for server discovery.
public EnumerateHosts ( ) : string[]
Résultat string[]

GetAvailableServers() public méthode

Returns a list of servers that support the specified specification.
public GetAvailableServers ( ) : System.Uri[]
Résultat System.Uri[]

ParseUrl() public méthode

Parses the URL and fetches the information about the server.
public ParseUrl ( Uri uri ) : ComServerDescription
uri System.Uri The URI.
Résultat ComServerDescription

ServerFactory() public méthode

Initializes an empty instance.
public ServerFactory ( ) : System
Résultat System