static void Main(string[] args) { ServiceProxy proxy = new ServiceProxy(); using (SoaServiceCallContext soaContext = new SoaServiceCallContext(true, true)) { soaContext.BeginRecordLogTrackEvent += SoaContext_BeginRecordLogTrackEvent; soaContext.TransactionEndEvent += SoaContext_TransactionEndEvent; proxy.SetTicketPrice("123456", 12.4); proxy.UpdateTIcketCache("123456", 32.4); } }
public SoaServiceCallContext(bool transaction, bool logtrack) { this.Transaction = transaction; this.LogTrack = logtrack; SoaServiceCallContext._context = this; }