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
ファイルを表示 Open project: nano-byte/common Class Usage Examples

Public Methods

Method Description
LocationsRedirect ( string prefix ) : System

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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

LocationsRedirect() public method

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.
return System