C# 클래스 FoundationDB.Samples.Tutorials.ClassScheduling

상속: IAsyncTest
파일 보기 프로젝트 열기: BedeGaming/foundationdb-dotnet-client

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
AttendsKey ( string s, string c ) : Slice
AttendsKeys ( string s ) : FdbKeyRange
ClassKey ( string c ) : Slice

메소드 상세

AttendsKey() 보호된 메소드

protected AttendsKey ( string s, string c ) : Slice
s string
c string
리턴 Slice

AttendsKeys() 보호된 메소드

protected AttendsKeys ( string s ) : FdbKeyRange
s string
리턴 FdbKeyRange

AvailableClasses() 공개 메소드

Returns the list of names of all existing classes
public AvailableClasses ( IFdbReadOnlyTransaction tr ) : Task>
tr IFdbReadOnlyTransaction
리턴 Task>

ClassKey() 보호된 메소드

protected ClassKey ( string c ) : Slice
c string
리턴 Slice

ClassScheduling() 공개 메소드

public ClassScheduling ( ) : FoundationDB.Client
리턴 FoundationDB.Client

Drop() 공개 메소드

Drop a student from a class
public Drop ( IFdbTransaction tr, string s, string c ) : Task
tr IFdbTransaction
s string
c string
리턴 Task

IndecisiveStudent() 공개 메소드

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
리턴 Task

Init() 공개 메소드

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

Run() 공개 메소드

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

Signup() 공개 메소드

Signup a student to a class
public Signup ( IFdbTransaction tr, string s, string c ) : Task
tr IFdbTransaction
s string
c string
리턴 Task

Switch() 공개 메소드

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
리턴 Task