C# Class FoundationDB.Samples.Tutorials.MessageQueueRunner

Inheritance: IAsyncTest
Exibir arquivo Open project: BedeGaming/foundationdb-dotnet-client

Public Methods

Method Description
Init ( IFdbDatabase db, CancellationToken ct ) : Task

Setup the initial state of the database

MessageQueueRunner ( string id, AgentRole role, System.TimeSpan delayMin, System.TimeSpan delayMax ) : Doxense.Mathematics.Statistics
Run ( IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
RunClear ( IFdbDatabase db, CancellationToken ct ) : Task
RunConsumer ( IFdbDatabase db, CancellationToken ct ) : Task
RunProducer ( IFdbDatabase db, CancellationToken ct ) : Task

Simulate a student that is really indecisive

RunStatus ( IFdbDatabase db, CancellationToken ct ) : Task

Method Details

Init() public method

Setup the initial state of the database
public Init ( IFdbDatabase db, CancellationToken ct ) : Task
db IFdbDatabase
ct System.Threading.CancellationToken
return Task

MessageQueueRunner() public method

public MessageQueueRunner ( string id, AgentRole role, System.TimeSpan delayMin, System.TimeSpan delayMax ) : Doxense.Mathematics.Statistics
id string
role AgentRole
delayMin System.TimeSpan
delayMax System.TimeSpan
return Doxense.Mathematics.Statistics

Run() public method

public Run ( IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
db IFdbDatabase
log System.IO.TextWriter
ct System.Threading.CancellationToken
return Task

RunClear() public method

public RunClear ( IFdbDatabase db, CancellationToken ct ) : Task
db IFdbDatabase
ct System.Threading.CancellationToken
return Task

RunConsumer() public method

public RunConsumer ( IFdbDatabase db, CancellationToken ct ) : Task
db IFdbDatabase
ct System.Threading.CancellationToken
return Task

RunProducer() public method

Simulate a student that is really indecisive
public RunProducer ( IFdbDatabase db, CancellationToken ct ) : Task
db IFdbDatabase
ct System.Threading.CancellationToken
return Task

RunStatus() public method

public RunStatus ( IFdbDatabase db, CancellationToken ct ) : Task
db IFdbDatabase
ct System.Threading.CancellationToken
return Task