0
|
1 [BLToolkitGenerated]
|
|
2 internal delegate int TestObject$Test$Delegate(int, string);
|
|
3
|
|
4 [BLToolkitGenerated]
|
|
5 public sealed class AsyncTestObject : HowTo.Aspects.AsyncAspectTest.AsyncTestObject
|
|
6 {
|
|
7 public override IAsyncResult BeginTest(int intVal, string strVal)
|
|
8 {
|
|
9 AsyncAspectBuilder.InternalAsyncResult r = new AsyncAspectBuilder.InternalAsyncResult();
|
|
10
|
|
11 r.Delegate = new TestObject$Test$Delegate(base.Test);
|
|
12 r.InnerResult = r.Delegate.BeginInvoke(intVal, strVal, null, null);
|
|
13
|
|
14 return r;
|
|
15 }
|
|
16
|
|
17 public override IAsyncResult BeginTest(int intVal, string strVal, AsyncCallback callback)
|
|
18 {
|
|
19 AsyncAspectBuilder.InternalAsyncResult r = new AsyncAspectBuilder.InternalAsyncResult();
|
|
20
|
|
21 r.Delegate = new TestObject$Test$Delegate(base.Test);
|
|
22 r.AsyncCallback = callback;
|
|
23 r.InnerResult = r.Delegate.BeginInvoke(intVal, strVal, new AsyncCallback(r.CallBack), null);
|
|
24
|
|
25 return r;
|
|
26 }
|
|
27
|
|
28 public override IAsyncResult BeginTest(int intVal, string strVal, AsyncCallback callback, object state)
|
|
29 {
|
|
30 AsyncAspectBuilder.InternalAsyncResult r = new AsyncAspectBuilder.InternalAsyncResult();
|
|
31
|
|
32 r.Delegate = new TestObject$Test$Delegate(base.Test);
|
|
33 r.AsyncCallback = callback;
|
|
34 r.InnerResult = r.Delegate.BeginInvoke(intVal, strVal, new AsyncCallback(r.CallBack), state);
|
|
35
|
|
36 return r;
|
|
37 }
|
|
38
|
|
39 public override int EndTest(IAsyncResult asyncResult)
|
|
40 {
|
|
41 AsyncAspectBuilder.InternalAsyncResult r = (AsyncAspectBuilder.InternalAsyncResult)asyncResult;
|
|
42
|
|
43 return ((TestObject$Test$Delegate)r.Delegate).EndInvoke(r.InnerResult);
|
|
44 }
|
|
45 }
|