コード例 #1
0
ファイル: ConnectionTester.cs プロジェクト: ifzz/FDK
 void OnAccountInfo(object sender, AccountInfoEventArgs e)
 {
     var trade = (DataTrade)sender;
     trade.AccountInfo -= this.OnAccountInfo;
     this.eventArgs = e;
     this.syncEvent.Set();
 }
コード例 #2
0
ファイル: UpdateHandler.cs プロジェクト: ifzz/FDK
 void OnAccountInfo(object sender, AccountInfoEventArgs e)
 {
     lock (this.SyncRoot)
     {
         this.updateCallback(null, e.Information, null);
         this.processor.WakeUp();
     }
 }
コード例 #3
0
ファイル: DataTrade.cs プロジェクト: ifzz/FDK
 void RaiseAccountInfo(FxMessage message)
 {
     var eh = this.AccountInfo;
     if (eh != null)
     {
         var e = new AccountInfoEventArgs(message);
         eh(this, e);
     }
 }
コード例 #4
0
ファイル: Snapshot.cs プロジェクト: ifzz/FDK
 void OnAccountInfo(object sender, AccountInfoEventArgs e)
 {
     lock (this.synchronizer)
     {
         this.AccountInfo = e.Information;
     }
     this.syncEvent.Set();
 }
コード例 #5
0
ファイル: DataTradeGrossTests.cs プロジェクト: ifzz/FDK
 void DataTrade_AccountInfo(object sender, AccountInfoEventArgs e)
 {
     this.accountInfoEvent.Set();
 }
コード例 #6
0
ファイル: Example.cs プロジェクト: ifzz/FDK
 void OnAccountInfo(object sender, AccountInfoEventArgs e)
 {
     Console.WriteLine("OnAccountInfo(): {0}", e);
 }
コード例 #7
0
 private void OnAccountInfo(object sender, AccountInfoEventArgs e)
 {
     TradeResults = new AccountTradeResults(e.Information.AccountId, _ordersPerSec);
     TradeIsReady.Set();
 }
コード例 #8
0
ファイル: Program.cs プロジェクト: ifzz/FDK
 static void OnAccountInfo(object sender, AccountInfoEventArgs e)
 {
     Console.WriteLine("OnAccountInfo(): {0}", e.Information);
     Console.WriteLine("Press any key to exit...");
 }