C# Class Res.Core.StorageBuffering.EventStorageReader

Exibir arquivo Open project: heartysoft/res Class Usage Examples

Public Methods

Method Description
EventStorageReader ( int maxSize, System.TimeSpan maxAgeBeforeDrop, EventStorage storage, int maxBatchSize = 2048 ) : System
Fetch ( FetchEventRequest request ) : Task
LoadEventsForStream ( string contextId, string streamId, long fromVersion, long maxVersion = null ) : Res.Core.Storage.EventInStorage[]
Start ( CancellationToken token ) : Task

Private Methods

Method Description
fetch ( Entry entries ) : void
run ( CancellationToken token ) : void

Method Details

EventStorageReader() public method

public EventStorageReader ( int maxSize, System.TimeSpan maxAgeBeforeDrop, EventStorage storage, int maxBatchSize = 2048 ) : System
maxSize int
maxAgeBeforeDrop System.TimeSpan
storage EventStorage
maxBatchSize int
return System

Fetch() public method

public Fetch ( FetchEventRequest request ) : Task
request Res.Core.Storage.FetchEventRequest
return Task

LoadEventsForStream() public method

public LoadEventsForStream ( string contextId, string streamId, long fromVersion, long maxVersion = null ) : Res.Core.Storage.EventInStorage[]
contextId string
streamId string
fromVersion long
maxVersion long
return Res.Core.Storage.EventInStorage[]

Start() public method

public Start ( CancellationToken token ) : Task
token System.Threading.CancellationToken
return Task