public static void Test() { ServiceProxy proxy = new ServiceProxy(); using (SoaServiceCallContext soaContext = new SoaServiceCallContext(true, true)) { soaContext.BeginRecordLogTrackEvent += SoaContext_BeginRecordLogTrackEvent; soaContext.TransactionEndHander += SoaContext_TransactionEndHander; proxy.SetTicketPrice("1", 2); TransactionActionInfo t = new TransactionActionInfo(); LogTrackLocation l = new LogTrackLocation(); soaContext.Run(t, l); } }
public void Run(TransactionActionInfo tr, LogTrackLocation log) { transactionEndHander(tr); beginRecordLogTrackHander(log); }
private static void Context_BeginRecordLogTrackEvent(LogTrackLocation arg) { Console.WriteLine(arg.Location); }
private static void SoaContext_BeginRecordLogTrackEvent(LogTrackLocation arg) { i += 1; }
private static void SoaContext_BeginRecordLogTrackEvent(LogTrackLocation arg) { throw new NotImplementedException(); }