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
Показать файл Открыть проект Примеры использования класса

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