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
Afficher le fichier Open project: nano-byte/common Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

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

Commit() public méthode

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

Dispose() public méthode

Replaces DestinationPath with the contents of WritePath.
public Dispose ( ) : void
Résultat void