C# Класс 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!
Наследование: TemporaryDirectory
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
LocationsRedirect ( string prefix ) : System

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

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Описание методов

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

LocationsRedirect() публичный Метод

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.
Результат System