2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 13:33:13 +00:00

Blazor support

This commit is contained in:
2022-08-30 22:28:19 +03:00
parent 4cc0657869
commit 216b891bf8
12 changed files with 282 additions and 187 deletions

View File

@ -412,6 +412,8 @@ public class DistributedResource : DynamicObject, IResource, INotifyPropertyChan
/// <returns>Indicator when the property is set.</returns>
protected object _SetSync(byte index, object value)
{
Console.WriteLine("Setting..." + index + " " + value);
if (destroyed)
throw new Exception("Trying to access a destroyed object.");
@ -428,7 +430,10 @@ public class DistributedResource : DynamicObject, IResource, INotifyPropertyChan
if (properties[index] == value)
return value;
return _Set(index, value).Wait();
var rt = _Set(index, value).Wait();
Console.WriteLine("Done Setting");
return rt;
}
/// <summary>