UpdateCheck Constructor CleanCode C# Libraries v1.2.03 API
Initializes a new instance of the UpdateCheck class.

Namespace: CleanCode.IO
Assembly: CleanCode (in CleanCode.dll) Version: (1.2.03)

public UpdateCheck(
	Assembly assembly,
	string repositorySearchPath,
	string filePattern


Type: OnlineSystem.Reflection Assembly
The assembly.
Type: OnlineSystem String
The shared directory(ies) containing all program versions. To include multiple directories, separate them with semicolons. Set this argument to null to disable the update checking.
Type: OnlineSystem String
The file pattern to filter the entries in repositorySearchPath.

The filePattern may be used to select a set of executables (in which case it must end in .exe) or to select a set of directories (where it must have no extension). Examples: (1) Use MyApp*.exe to match this set of files: MyApp-internal-1-7-0.exe, MyApp-1-7-1-4.exe, MyApp-1-7-1-5.exe. (2) Use MyApp* to match directories (if, for example, you do not have a single packaged installer).

You may include more than one search path in the repositorySearchPath parameter. This allows deploying the file repository in more than one location. This is useful in two typical scenarios where the search paths are network drives. The first is as a backup, so if one server is down you have a backup repository. The second is where you have two deployments that are not physically networked, e.g. a development environment and a test environment. Simply include both paths and they will be used appropriately. Disable the update check by specifying a null or empty string for repositorySearchPath.

See Also