Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrderEvent"/> class.
 /// </summary>
 /// <param name="session">The session the order belongs to.</param>
 /// <param name="eventTimestamp">The time of the event.</param>
 /// <param name="proxy">The order update model, serving as a proxy.</param>
 public OrderEvent(AlgorithmSession session, long eventTimestamp, OrderUpdate proxy)
 {
     Session        = session;
     EventTimestamp = eventTimestamp;
     Proxy          = proxy;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StateSwitchEvent"/> class.
 /// </summary>
 /// <param name="eventTimestamp">Timestamp.</param>
 /// <param name="name">Goal state.</param>
 /// <param name="session">The current session.</param>
 public StateSwitchEvent(long eventTimestamp, string name, AlgorithmSession session)
 {
     EventTimestamp = eventTimestamp;
     Name           = name;
     Session        = session;
 }