C# Class Marten.Events.Projections.Async.Fetcher

Inheritance: IDisposable, IFetcher
Mostra file Open project: JasperFx/marten Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
FetchNextPage ( long lastEncountered ) : Task
Fetcher ( IDocumentStore store, Marten.Events.Projections.Async.DaemonSettings settings, Marten.Events.Projections.Async.AsyncOptions options, IDaemonLogger logger, IDaemonErrorHandler errorHandler, IEnumerable eventTypes ) : System
Fetcher ( IDocumentStore store, Marten.Events.Projections.Async.DaemonSettings settings, IProjection projection, IDaemonLogger logger, IDaemonErrorHandler errorHandler ) : System
Pause ( ) : Task
Reset ( ) : void
Start ( IProjectionTrack track, DaemonLifecycle lifecycle, CancellationToken token = default(CancellationToken) ) : void
Stop ( ) : Task

Private Methods

Method Description
buildEventPage ( long @from, NpgsqlCommand cmd ) : Task
fetchEvents ( IProjectionTrack track, DaemonLifecycle lifecycle ) : Task
fetchNextPage ( long lastEncountered ) : Task
getLong ( DbDataReader reader ) : Task

Method Details

Dispose() public method

public Dispose ( ) : void
return void

FetchNextPage() public method

public FetchNextPage ( long lastEncountered ) : Task
lastEncountered long
return Task

Fetcher() public method

public Fetcher ( IDocumentStore store, Marten.Events.Projections.Async.DaemonSettings settings, Marten.Events.Projections.Async.AsyncOptions options, IDaemonLogger logger, IDaemonErrorHandler errorHandler, IEnumerable eventTypes ) : System
store IDocumentStore
settings Marten.Events.Projections.Async.DaemonSettings
options Marten.Events.Projections.Async.AsyncOptions
logger IDaemonLogger
errorHandler IDaemonErrorHandler
eventTypes IEnumerable
return System

Fetcher() public method

public Fetcher ( IDocumentStore store, Marten.Events.Projections.Async.DaemonSettings settings, IProjection projection, IDaemonLogger logger, IDaemonErrorHandler errorHandler ) : System
store IDocumentStore
settings Marten.Events.Projections.Async.DaemonSettings
projection IProjection
logger IDaemonLogger
errorHandler IDaemonErrorHandler
return System

Pause() public method

public Pause ( ) : Task
return Task

Reset() public method

public Reset ( ) : void
return void

Start() public method

public Start ( IProjectionTrack track, DaemonLifecycle lifecycle, CancellationToken token = default(CancellationToken) ) : void
track IProjectionTrack
lifecycle DaemonLifecycle
token System.Threading.CancellationToken
return void

Stop() public method

public Stop ( ) : Task
return Task