Search Results for

    Show / Hide Table of Contents

    Namespace Tenray.ZoneTree.AbstractFileStream

    Classes

    DurableFileWriter

    Prevents partial write (e.g. power cut) by writing to a temporary file first. As a final step the following options are supported:

    1. Replacement with taking a backup: It replaces the target file with the temp file using OS Replace API. Replace method also does a backup of the target file first. If the file is corrupted the backup file contains the latest content prior to the crash. https://source.dot.net/#System.Private.CoreLib/FileSystem.Unix.cs

    See more details: https://github.com/dotnet/runtime/issues/18034

    1. Replacement with ReplaceAPI but without a backup: Renaming a file in the same volume is atomic operation. In this mode Replace call uses Interop.Sys.Rename(sourceFullPath, destFullPath) internally.

    LocalFileStream

    LocalFileStreamProvider

    MemoryStreamExtensions

    Interfaces

    IFileStream

    IFileStreamProvider

    Abstraction over FileStream to make it easy to integrate with cloud blob / stream providers.

    In This Article
    Back to top Copyright © 2022 Tenray.io