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
파일 보기 프로젝트 열기: nano-byte/common 1 사용 예제들

공개 메소드들

메소드 설명
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