using System; using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Text; namespace Esiur.Core { public interface IAsyncReply//IAsyncEnumerator { IAsyncReply Then(Action callback); IAsyncReply Error(Action callback); IAsyncReply Progress(Action callback); IAsyncReply Chunk(Action callback); void Trigger(object result); void TriggerError(Exception exception); void TriggerProgress(ProgressType type, int value, int max); void TriggerChunk(object value); } }