コード例 #1
0
 private static void DoMapping(XComponent.Referential.UserObject.InstrumentSnapshot triggeringEvent, XComponent.TradeCapture.UserObject.Transaction publicMember, Context context, dynamic sender)
 {
     if (triggeringEvent.Instruments.Contains(publicMember.Instrument))
     {
         Mapper mapper = new Mapper();
         publicMember.Instrument = mapper.GetValue(publicMember.Instrument, publicMember.ExecutionDate);
         sender.Accepted(context, new XComponent.TradeCapture.UserObject.Accept());
     }
     else
     {
         sender.Error(context, new Error());
     }
 }
コード例 #2
0
 public static void ExecuteOn_Referential_Through_AddInstrument(XComponent.Referential.UserObject.Instrument instrument, XComponent.Referential.UserObject.InstrumentSnapshot instrumentSnapshot, object object_InternalMember, Context context, IAddInstrumentInstrumentOnReferentialReferentialSenderInterface sender)
 {
     if (!instrumentSnapshot.Instruments.Contains(instrument.Name))
     {
         instrumentSnapshot.Instruments.Add(instrument.Name);
     }
 }
コード例 #3
0
 public static void ExecuteOn_Mapping_Through_ReferentialNotification(XComponent.Referential.UserObject.InstrumentSnapshot instrumentSnapshot, XComponent.TradeCapture.UserObject.Transaction transaction, object object_InternalMember, Context context, IReferentialNotificationInstrumentSnapshotOnMappingTransactionSenderInterface sender)
 {
     DoMapping(instrumentSnapshot, transaction, context, sender);
 }