mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-10-24 03:50:57 +00:00
Handle
This commit is contained in:
1 parent
e4a54ffbe8
commit
a91fc7d262
29 files changed
+206
-148
No files matched your search
@@ -38,9 +38,9 @@ public class Resource : IResource
|
||||
OnDestroy?.Invoke(this);
|
||||
}
|
||||
|
||||
public virtual AsyncReply<bool> Trigger(ResourceOperation trigger)
|
||||
public virtual AsyncReply<bool> Handle(ResourceOperation operation, IResourceContext context = null)
|
||||
{
|
||||
if (trigger == ResourceOperation.Initialize)
|
||||
if (operation == ResourceOperation.Initialize)
|
||||
return new AsyncReply<bool>(this.Create());
|
||||
else
|
||||
return new AsyncReply<bool>(true);
|
||||
|
||||
Reference in new issue
Block a user