Пример #1
0
        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);
            }
        }
Пример #2
0
 public SoaServiceCallContext(bool transaction, bool logtrack)
 {
     this.Transaction = transaction;
     this.LogTrack    = logtrack;
     SoaServiceCallContext._context = this;
 }