C# Class NanoByte.Common.Storage.LocationsRedirect

Disposable class to create a temporary directory where all Locations queries are temporarily redirected to. Useful for testing. Do not use when multi-threading is involved!
Inheritance: TemporaryDirectory
Afficher le fichier Open project: nano-byte/common Class Usage Examples

Méthodes publiques

Méthode Description
LocationsRedirect ( string prefix ) : System

Creates a uniquely named, empty temporary directory on disk and starts redirecting all Locations queries there.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Method Details

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

LocationsRedirect() public méthode

Creates a uniquely named, empty temporary directory on disk and starts redirecting all Locations queries there.
A problem occurred while creating a directory in . Creating a directory in is not permitted.
public LocationsRedirect ( string prefix ) : System
prefix string A short string the directory name should start with.
Résultat System