-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAsyncResult.cs
More file actions
42 lines (30 loc) · 754 Bytes
/
Copy pathAsyncResult.cs
File metadata and controls
42 lines (30 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Text;
namespace TicketProvider.Net
{
public class AsyncResult<T> : AsyncResultVoid
{
#region Variables
private T _result;
#endregion
#region Properties
#endregion
#region Functions
public AsyncResult(AsyncCallback asyncCallback, object state)
: base(asyncCallback, state)
{
}
public void Complete(T result, bool completedSynchronously)
{
_result = result;
base.Complete(null, completedSynchronously);
}
public new T EndInvoke()
{
base.EndInvoke();
return _result;
}
#endregion
}
}