C# 클래스 NanoByte.Common.Storage.AtomicWrite

Provides a temporary path to write to and atomically inserts it at the destination location on disposal (if Commit was called).
상속: IDisposable
파일 보기 프로젝트 열기: nano-byte/common 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
AtomicWrite ( [ path ) : System

Prepares a atomic write operation.

Commit ( ) : void

Allows the new file to be deployed upon Dispose.

Dispose ( ) : void

Replaces DestinationPath with the contents of WritePath.

메소드 상세

AtomicWrite() 공개 메소드

Prepares a atomic write operation.
public AtomicWrite ( [ path ) : System
path [ The file path of the final destination.
리턴 System

Commit() 공개 메소드

Allows the new file to be deployed upon Dispose.
public Commit ( ) : void
리턴 void

Dispose() 공개 메소드

Replaces DestinationPath with the contents of WritePath.
public Dispose ( ) : void
리턴 void