Exemplo n.º 1
0
 public void TracePostingStarted(IPayable payItem, DirectionType direction,
     Amount amount, GamingPostingContext postingContext)
 {
     if (postingContext != null)
     {
         Add(LogLevel.Info, payItem.GetType().Name,
             string.Format("{0} posting: ID={1}, PayItemID={2}, amount={3} started",
                 Util.Convertion.EnumValueToName<DirectionType>(direction), postingContext.PostingID,
                 payItem.ID, amount),
             postingContext.PreTransID, postingContext.PostingID);
     }
 }
Exemplo n.º 2
0
 public void TracePostingCompleted(IPayable payItem, DirectionType direction,
     Amount amount, PostingContext postingContext)
 {
     if (postingContext != null)
     {
         Add(LogLevel.Info, payItem.GetType().Name,
             string.Format("{0} posting: ID={1}, PayItemID={2}, amount={3} finished, ref={4}",
                 Util.Convertion.EnumValueToName<DirectionType>(direction), postingContext.PostingID,
                 payItem.ID, amount, postingContext.ExternalReference),
             postingContext.PreTransID, postingContext.PostingID);
     }
 }