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); }
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); }
public void Execute(Context context, XComponent.Trade.UserObject.TradeExecution transitionEvent, string privateTopic = null) { _internalCommunicationLayer.Send(context, transitionEvent, privateTopic); }
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); }
public void SendEvent(StdEnum stdEnum, XComponent.Trade.UserObject.TradeExecution evt, string privateTopic = null) { _internalCommunicationLayer.SendEvent(stdEnum, evt, privateTopic); }
public void Execute(Context context, XComponent.Trade.UserObject.TradeExecution transitionEvent, string privateTopic = null) { _internalAPI.Execute(context, transitionEvent, privateTopic); }
public void SendEvent(StdEnum stdEnum, XComponent.Trade.UserObject.TradeExecution evt) { _internalAPI.SendEvent(stdEnum, evt, null); }
public void SendEvent(XComponent.Trade.UserObject.TradeExecution evt) { _internalAPI.SendEvent(evt, null); }
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; }