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!
More...
|
override void | Dispose (bool disposing) |
|
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!
◆ LocationsRedirect()
NanoByte.Common.Storage.LocationsRedirect.LocationsRedirect |
( |
string |
prefix | ) |
|
|
inline |
Creates a uniquely named, empty temporary directory on disk and starts redirecting all Locations queries there.
- Parameters
-
prefix | A short string the directory name should start with. |
- Exceptions
-
IOException | A problem occurred while creating a directory in System.IO.Path.GetTempPath. |
UnauthorizedAccessException | Creating a directory in System.IO.Path.GetTempPath is not permitted. |
The documentation for this class was generated from the following file:
- Common/Storage/LocationsRedirect.cs