2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-06-13 14:38:43 +00:00
This commit is contained in:
2026-06-04 12:12:54 +03:00
parent 05b646b7b2
commit 3cd611970a
15 changed files with 645 additions and 745 deletions
+5 -5
View File
@@ -357,7 +357,7 @@ public class EpResource : DynamicObject, IResource, INotifyPropertyChanged, IDyn
throw new Exception("Trying to access a suspended object.");
if (_status != ResourceStatus.Attached)
if (_status != ResourceStatus.Published)
{
result = null;
return false;
@@ -440,7 +440,7 @@ public class EpResource : DynamicObject, IResource, INotifyPropertyChanged, IDyn
result = null;
if (_status != ResourceStatus.Attached)
if (_status != ResourceStatus.Published)
return false;
var pt = Instance.Definition.GetPropertyDefByName(binder.Name);
@@ -498,7 +498,7 @@ public class EpResource : DynamicObject, IResource, INotifyPropertyChanged, IDyn
if (_status == ResourceStatus.Suspended)
throw new Exception("Trying to access a suspended object.");
if (_status != ResourceStatus.Attached)
if (_status != ResourceStatus.Published)
return false;
var pt = Instance.Definition.GetPropertyDefByName(binder.Name);
@@ -619,8 +619,8 @@ public class EpResource : DynamicObject, IResource, INotifyPropertyChanged, IDyn
if (_status == ResourceStatus.Suspended)
throw new Exception("Trying to access a suspended object.");
if (_status != ResourceStatus.Attached)
throw new Exception("Resource is not attached.");
if (_status != ResourceStatus.Published)
throw new Exception("Resource is not published.");
if (index >= _properties.Length)
throw new Exception("Property index not found."); ;