2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 05:23:13 +00:00
This commit is contained in:
2024-03-25 17:59:55 +03:00
parent 81f9f92755
commit 8ab0e811bd
21 changed files with 255 additions and 100 deletions

View File

@ -51,15 +51,15 @@ public class MongoDBStore : IStore
KeyList<string, WeakReference> resources = new KeyList<string, WeakReference>();
[Public]
[Export]
public event ResourceEventHandler<IResource> ResourceAdded;
[Public]
[Export]
public event ResourceEventHandler<IResource> ResourceRemoved;
int count = 0;
[Public]
[Export]
public virtual int Count
{
get
@ -109,7 +109,7 @@ public class MongoDBStore : IStore
return true;
}
[Public]
[Export]
public bool Remove(IResource resource)
{
var objectId = resource.Instance.Variables["objectId"].ToString();