2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 13:33:13 +00:00
This commit is contained in:
2024-12-07 02:56:49 +03:00
parent ebc80b08cf
commit 07561062ca
5 changed files with 37 additions and 37 deletions

View File

@ -9,13 +9,22 @@ namespace Esiur.Core
{
private uint CallbackId;
internal bool Ended;
public void Chunk(object value)
{
if (Ended)
throw new Exception("Execution has ended.");
Connection.SendChunk(CallbackId, value);
}
public void Progress(int value) {
public void Progress(int value, int max) {
if (Ended)
throw new Exception("Execution has ended.");
Connection.SendProgress(CallbackId, value, max);
}
public DistributedConnection Connection { get; internal set; }