2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-09-13 12:43:17 +00:00
This commit is contained in:
2025-08-23 18:16:19 +03:00
parent c4b4a2e4cb
commit 0d4ea04ef4
21 changed files with 306 additions and 305 deletions

View File

@@ -19,7 +19,7 @@ namespace Esiur.Core
Connection.SendChunk(CallbackId, value);
}
public void Progress(int value, int max) {
public void Progress(uint value, uint max) {
if (Ended)
throw new Exception("Execution has ended.");
@@ -27,6 +27,15 @@ namespace Esiur.Core
Connection.SendProgress(CallbackId, value, max);
}
public void Warning(byte level, string message)
{
if (Ended)
throw new Exception("Execution has ended.");
Connection.SendWarning(CallbackId, level, message);
}
public DistributedConnection Connection { get; internal set; }