C# Class Opc.Ua.Com.ServerFactory

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

Public Methods

Method 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.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

An overrideable version of the Dispose.

Private Methods

Method 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 method

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

Connect() public method

Connects to OPCEnum on the local machine.
public Connect ( ) : void
return void

Connect() public method

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

CreateServer() public method

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

Disconnect() public method

Releases the active server.
public Disconnect ( ) : void
return void

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

EnumerateHosts() public method

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

GetAvailableServers() public method

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

ParseUrl() public method

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

ServerFactory() public method

Initializes an empty instance.
public ServerFactory ( ) : System
return System