C# Class 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).
Inheritance: IDisposable
Exibir arquivo Open project: nano-byte/common Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
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.

Method Details

AtomicWrite() public method

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

Commit() public method

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

Dispose() public method

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