2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-05-06 19:42:58 +00:00
esiur-dotnet/Esiur/Engine/AsyncReplyGeneric.cs
2017-09-15 23:40:03 +03:00

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)
{
}
}
}