コード例 #1
0
 public void Initialize(Task task)
 {
     this.task      = task;
     filter         = task.GetFilter();
     task.Scheduler = Scheduler.EarliestTime;
     fixPacketQueue.ConnectInbound(task);
     heartbeatTimer = Factory.Parallel.CreateTimer("Heartbeat", task, HeartbeatTimerEvent);
     IncreaseHeartbeat();
     task.Start();
     ListenToFIX();
     MainLoopMethod = Invoke;
     if (debug)
     {
         log.Debug("Starting FIX Simulator.");
     }
     if (allTests)
     {
         foreach (var kvp in simulators)
         {
             var simulator = kvp.Value;
             if (!simulator.Enabled && simulator.Minimum > 0)
             {
                 log.Error(simulator + " is disabled");
             }
         }
         if (!simulateReceiveFailed)
         {
             log.Error("SimulateReceiveFailed is disabled.");
         }
         if (!simulateSendFailed)
         {
             log.Error("SimulateSendFailed is disabled.");
         }
     }
 }
コード例 #2
0
 public FIXPretradeFilter(string address, ushort port)
 {
     this.remoteAddress  = address;
     this.remotePort     = port;
     WriteToLocalMethod  = WriteToLocal;
     WriteToRemoteMethod = WriteToRemote;
     ListenToLocal();
 }
コード例 #3
0
ファイル: Parrallel.cs プロジェクト: zoomcoder/TickZoomPublic
 public Yield DelayInvoke(YieldMethod method)
 {
     Method = method;
     Status = YieldStatus.DelayInvoke;
     return(this);
 }