コード例 #1
0
 public LoanFieldEventMessageBuilder(ILoans loans, LoanFieldEventArgs loanFieldEventArgs)
     : base(loans)
 {
     LoanEvent.OldValue    = loanFieldEventArgs.OldValue.ToString();
     LoanEvent.NewValue    = loanFieldEventArgs.NewValue.ToString();
     LoanEvent.FieldName   = loanFieldEventArgs.LoanField.DataDefinition.XmlName;
     LoanEvent.FieldNumber = loanFieldEventArgs.LoanField.DataDefinition.FieldNumber;
     Topic = string.Format("{0}.{1}", LoanEvent.GetType().Name, LoanEvent.FieldNumber);
 }
コード例 #2
0
 public LoanMajorEventMessageBuilder(ILoans loans, int majorEventNum)
     : base(loans)
 {
     LoanEvent.MajorEventNum = majorEventNum;
     Topic = string.Format("{0}.{1}", LoanEvent.GetType().Name, LoanEvent.MajorEventNum);
 }