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-05-26 00:43:28 +03:00
parent ae6a1fc8d7
commit e4a54ffbe8
27 changed files with 174 additions and 118 deletions
+3 -3
View File
@@ -521,10 +521,10 @@ public class MongoDBStore : IStore
public string Collection { get; set; }
[Attribute]
public string Database { get; set; }
public AsyncReply<bool> Trigger(ResourceTrigger trigger)
public AsyncReply<bool> Trigger(ResourceOperation trigger)
{
if (trigger == ResourceTrigger.Initialize)
if (trigger == ResourceOperation.Initialize)
{
var collectionName = Collection ?? "resources";
@@ -574,7 +574,7 @@ public class MongoDBStore : IStore
return new AsyncReply<bool>(true);
}
else if (trigger == ResourceTrigger.Terminate)
else if (trigger == ResourceOperation.Terminate)
{
// save all resources
foreach (var resource in resources.Values)