C# Class Opc.Ua.Configuration.ManagedApplication

ファイルを表示 Open project: OPCFoundation/UA-.NET Class Usage Examples

Private Properties

Property Type Description
GetApplicationSettings Opc.Ua.Security.SecuredApplication
GetConfigFileFromAppConfig string
LoadSdkConfigFile void

Public Methods

Method Description
Load ( string filePath ) : ManagedApplication

Loads the specified file path.

ManagedApplication ( ) : System

Initializes a new instance of the ManagedApplication class.

Reload ( ) : void

Reloads the configuration from disk.

Save ( string filePath ) : void

Saves the specified file path.

SetConfigurationFile ( string filePath ) : void

Sets the configuration file.

SetExecutableFile ( string filePath ) : void

Sets the executable file.

ToString ( ) : string

Returns a System.String that represents this instance.

Private Methods

Method Description
GetApplicationSettings ( string filePath ) : Opc.Ua.Security.SecuredApplication

Gets the application secuirty settings from a file.

GetConfigFileFromAppConfig ( FileInfo appConfigFile ) : string

Gets the config file location from app config.

LoadSdkConfigFile ( ) : void

Tries to loads the SDK config file.

Method Details

Load() public static method

Loads the specified file path.
public static Load ( string filePath ) : ManagedApplication
filePath string The file path.
return ManagedApplication

ManagedApplication() public method

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

Reload() public method

Reloads the configuration from disk.
public Reload ( ) : void
return void

Save() public method

Saves the specified file path.
public Save ( string filePath ) : void
filePath string The file path. Uses the original source file path if not provided.
return void

SetConfigurationFile() public method

Sets the configuration file.
public SetConfigurationFile ( string filePath ) : void
filePath string The file path.
return void

SetExecutableFile() public method

Sets the executable file.
public SetExecutableFile ( string filePath ) : void
filePath string The file path.
return void

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string