コード例 #1
0
 public void SendEvent(XComponent.Trade.UserObject.TradeExecution evt, string privateTopic = null)
 {
     SendEvent(StdEnum.TradeProcessor, evt != null ? evt : new XComponent.Trade.UserObject.TradeExecution(), privateTopic);
     SendEvent(StdEnum.Trade, evt != null ? evt : new XComponent.Trade.UserObject.TradeExecution(), privateTopic);
 }
コード例 #2
0
        public void SendEvent(StdEnum stateMachineEnum, XComponent.Trade.UserObject.TradeExecution evt, string privateTopic = null)
        {
            var incomingEvent = new IncomingEvent(evt != null ? evt : new XComponent.Trade.UserObject.TradeExecution(), IncomingEventType.Transition, HeaderFactory.Create(14, (int)stateMachineEnum, -729436854, privateTopic));

            PostOnStateMachine(incomingEvent, stateMachineEnum);
        }
コード例 #3
0
ファイル: InternalAPI.cs プロジェクト: IanMadlenya/xcomponent
 public void Execute(Context context, XComponent.Trade.UserObject.TradeExecution transitionEvent, string privateTopic = null)
 {
     _internalCommunicationLayer.Send(context, transitionEvent, privateTopic);
 }
コード例 #4
0
        public void Send(Context context, XComponent.Trade.UserObject.TradeExecution evt, string privateTopic = null)
        {
            var incomingEvent = new IncomingEvent(evt != null ? evt : new XComponent.Trade.UserObject.TradeExecution(), IncomingEventType.Transition, HeaderFactory.Create(context, 14, privateTopic));

            Agent.Post(_engineAgentsById[context.AgentId], incomingEvent);
        }
コード例 #5
0
ファイル: InternalAPI.cs プロジェクト: IanMadlenya/xcomponent
 public void SendEvent(StdEnum stdEnum, XComponent.Trade.UserObject.TradeExecution evt, string privateTopic = null)
 {
     _internalCommunicationLayer.SendEvent(stdEnum, evt, privateTopic);
 }
コード例 #6
0
 public void Execute(Context context, XComponent.Trade.UserObject.TradeExecution transitionEvent, string privateTopic = null)
 {
     _internalAPI.Execute(context, transitionEvent, privateTopic);
 }
コード例 #7
0
 public void SendEvent(StdEnum stdEnum, XComponent.Trade.UserObject.TradeExecution evt)
 {
     _internalAPI.SendEvent(stdEnum, evt, null);
 }
コード例 #8
0
 public void SendEvent(XComponent.Trade.UserObject.TradeExecution evt)
 {
     _internalAPI.SendEvent(evt, null);
 }
コード例 #9
0
 public static void ExecuteOn_Executed_Through_Execute(XComponent.Trade.UserObject.TradeExecution tradeExecution, XComponent.Trade.UserObject.Trade trade, object object_InternalMember, Context context, IExecuteTradeExecutionOnExecutedTradeSenderInterface sender)
 {
     trade.Quantity      = tradeExecution.Quantity;
     trade.Price         = tradeExecution.Price;
     trade.ExecutionDate = DateTime.Now;
 }