C# Class Adaptive.ReactiveTrader.Server.TradeExecution.TradeIdProvider

Uses a Hi/Lo algorithm to generate TradeIds http://stackoverflow.com/questions/282099/whats-the-hi-lo-algorithm
Inheritance: IDisposable
Mostra file Open project: AdaptiveConsulting/ReactiveTraderCloud Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
GetNextId ( ) : Task
TradeIdProvider ( IRepository repository ) : System

Private Methods

Method Description
GetHiValueFromEventStore ( ) : Task
GetNextHiValue ( int triesLeft = HiValueTryCount ) : Task

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetNextId() public method

public GetNextId ( ) : Task
return Task

TradeIdProvider() public method

public TradeIdProvider ( IRepository repository ) : System
repository IRepository
return System