2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-26 21:13:13 +00:00
This commit is contained in:
2019-07-07 02:49:34 +03:00
parent 08e95bd4dc
commit 8763ac805e
4 changed files with 56 additions and 15 deletions

View File

@ -36,12 +36,20 @@ namespace Esiur.Resource
public virtual void Destroy()
{
}
public virtual AsyncReply<bool> Trigger(ResourceTrigger trigger)
{
return new AsyncReply<bool>(true);
if (trigger == ResourceTrigger.Initialize)
return new AsyncReply<bool>(this.Create());
else
return new AsyncReply<bool>(true);
}
public virtual bool Create()
{
return true;
}
}
}