mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-05-06 19:42:58 +00:00
37 lines
599 B
C#
37 lines
599 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Esiur.Resource;
|
|
|
|
namespace Esiur.Engine
|
|
{
|
|
public class AsyncReply<T>: AsyncReply
|
|
{
|
|
public void Then(Action<T> callback)
|
|
{
|
|
base.Then(new Action<object>(o => callback((T)o)));
|
|
}
|
|
|
|
public void Trigger(T result)
|
|
{
|
|
Trigger((object)result);
|
|
}
|
|
|
|
public AsyncReply()
|
|
{
|
|
|
|
}
|
|
|
|
public AsyncReply(T result)
|
|
: base(result)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|