C# Class FoundationDB.Samples.Tutorials.ClassScheduling

Inheritance: IAsyncTest
Afficher le fichier Open project: BedeGaming/foundationdb-dotnet-client

Méthodes publiques

Méthode Description
AvailableClasses ( IFdbReadOnlyTransaction tr ) : Task>

Returns the list of names of all existing classes

ClassScheduling ( ) : FoundationDB.Client
Drop ( IFdbTransaction tr, string s, string c ) : Task

Drop a student from a class

IndecisiveStudent ( IFdbDatabase db, int id, int ops, CancellationToken ct ) : Task

Simulate a student that is really indecisive

Init ( IFdbDatabase db, CancellationToken ct ) : Task

Setup the initial state of the database

Run ( IFdbDatabase db, TextWriter log, CancellationToken ct ) : Task
Signup ( IFdbTransaction tr, string s, string c ) : Task

Signup a student to a class

Switch ( IFdbTransaction tr, string s, string oldC, string newC ) : Task

Drop a student from a class, and sign him up to another class

Méthodes protégées

Méthode Description
AttendsKey ( string s, string c ) : Slice
AttendsKeys ( string s ) : FdbKeyRange
ClassKey ( string c ) : Slice

Method Details

AttendsKey() protected méthode

protected AttendsKey ( string s, string c ) : Slice
s string
c string
Résultat Slice

AttendsKeys() protected méthode

protected AttendsKeys ( string s ) : FdbKeyRange
s string
Résultat FdbKeyRange

AvailableClasses() public méthode

Returns the list of names of all existing classes
public AvailableClasses ( IFdbReadOnlyTransaction tr ) : Task>
tr IFdbReadOnlyTransaction
Résultat Task>

ClassKey() protected méthode

protected ClassKey ( string c ) : Slice
c string
Résultat Slice

ClassScheduling() public méthode

public ClassScheduling ( ) : FoundationDB.Client
Résultat FoundationDB.Client

Drop() public méthode

Drop a student from a class
public Drop ( IFdbTransaction tr, string s, string c ) : Task
tr IFdbTransaction
s string
c string
Résultat Task

IndecisiveStudent() public méthode

Simulate a student that is really indecisive
public IndecisiveStudent ( IFdbDatabase db, int id, int ops, CancellationToken ct ) : Task
db IFdbDatabase
id int
ops int
ct System.Threading.CancellationToken
Résultat Task

Init() public méthode

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

Run() public méthode

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

Signup() public méthode

Signup a student to a class
public Signup ( IFdbTransaction tr, string s, string c ) : Task
tr IFdbTransaction
s string
c string
Résultat Task

Switch() public méthode

Drop a student from a class, and sign him up to another class
public Switch ( IFdbTransaction tr, string s, string oldC, string newC ) : Task
tr IFdbTransaction
s string
oldC string
newC string
Résultat Task