C# Класс Platform.StreamStorage.File.FileEventStoreChunk

Represents collection of events within a single physical file. It can be opened as mutable or as read-only
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Append ( string key, IEnumerable data ) : ChunkAppendResult
CreateNew ( string path ) : FileEventStoreChunk
Dispose ( ) : void
OpenExistingForWriting ( string path, long offset ) : FileEventStoreChunk
OpenForReading ( string path ) : FileEventStoreChunk
ReadAll ( long starting, int maxCount ) : IEnumerable
Reset ( ) : void

Приватные методы

Метод Описание
FileEventStoreChunk ( FileStream stream, bool isMutable ) : System

Описание методов

Append() публичный Метод

public Append ( string key, IEnumerable data ) : ChunkAppendResult
key string
data IEnumerable
Результат ChunkAppendResult

CreateNew() публичный статический Метод

public static CreateNew ( string path ) : FileEventStoreChunk
path string
Результат FileEventStoreChunk

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

OpenExistingForWriting() публичный статический Метод

public static OpenExistingForWriting ( string path, long offset ) : FileEventStoreChunk
path string
offset long
Результат FileEventStoreChunk

OpenForReading() публичный статический Метод

public static OpenForReading ( string path ) : FileEventStoreChunk
path string
Результат FileEventStoreChunk

ReadAll() публичный Метод

public ReadAll ( long starting, int maxCount ) : IEnumerable
starting long
maxCount int
Результат IEnumerable

Reset() публичный Метод

public Reset ( ) : void
Результат void