C# Class NetSparkle.NetSparkleRegistryConfiguration

This class handles all registry values which are used from sparkle to handle update intervalls. All values are stored in HKCU\Software\Vendor\AppName which will be read ot from the assembly information. All values are of the REG_SZ type, no matter what their "logical" type is. The following options are available: CheckForUpdate - Boolean - Whether NetSparkle should check for updates LastCheckTime - time_t - Time of last check SkipThisVersion - String - If the user skipped an update, then the version to ignore is stored here (e.g. "1.4.3") DidRunOnce - Boolean - Check only one time when the app launched
Inheritance: NetSparkle.NetSparkleConfiguration
ファイルを表示 Open project: Deadpikle/NetSparkle Class Usage Examples

Public Methods

Method Description
NetSparkleRegistryConfiguration ( string referenceAssembly ) : System

The constructor reads out all configured values

NetSparkleRegistryConfiguration ( string referenceAssembly, bool isReflectionBasedAssemblyAccessorUsed ) : System

Constructor

NetSparkleRegistryConfiguration ( string referenceAssembly, bool isReflectionBasedAssemblyAccessorUsed, string registryPath ) : System

Constructor

Reload ( ) : void

Reloads the configuration object

SetVersionToSkip ( string version ) : void

This method allows to skip a specific version

TouchCheckTime ( ) : void

Touches the check time to now, should be used after a check directly

TouchProfileTime ( ) : void

Touches to profile time

Private Methods

Method Description
BuildRegistryPath ( ) : String

This function build a valid registry path in dependecy to the assembly information

ConvertDateToString ( System.DateTime dt ) : string
ConvertStringToDate ( string str ) : System.DateTime
LoadValuesFromPath ( String regPath ) : System.Boolean

This method loads the values from registry

SaveValuesToPath ( String regPath ) : System.Boolean

This method store the information into registry

Method Details

NetSparkleRegistryConfiguration() public method

The constructor reads out all configured values
public NetSparkleRegistryConfiguration ( string referenceAssembly ) : System
referenceAssembly string the reference assembly name
return System

NetSparkleRegistryConfiguration() public method

Constructor
public NetSparkleRegistryConfiguration ( string referenceAssembly, bool isReflectionBasedAssemblyAccessorUsed ) : System
referenceAssembly string the name of hte reference assembly
isReflectionBasedAssemblyAccessorUsed bool true if reflection is used to access the assembly.
return System

NetSparkleRegistryConfiguration() public method

Constructor
public NetSparkleRegistryConfiguration ( string referenceAssembly, bool isReflectionBasedAssemblyAccessorUsed, string registryPath ) : System
referenceAssembly string the name of hte reference assembly
isReflectionBasedAssemblyAccessorUsed bool true if reflection is used to access the assembly.
registryPath string true if reflection is used to access the assembly.
return System

Reload() public method

Reloads the configuration object
public Reload ( ) : void
return void

SetVersionToSkip() public method

This method allows to skip a specific version
public SetVersionToSkip ( string version ) : void
version string the version to skeip
return void

TouchCheckTime() public method

Touches the check time to now, should be used after a check directly
public TouchCheckTime ( ) : void
return void

TouchProfileTime() public method

Touches to profile time
public TouchProfileTime ( ) : void
return void