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

@ -35,7 +35,7 @@ namespace Esiur.Stores.MongoDB
{
public class MongoDBStore<T> : MongoDBStore where T:IResource
{
[Public]
[Export]
public async AsyncReply<T> New(string name = null, object properties = null)
{
var resource = await Warehouse.New<T>(name, this, null, null, null, properties);
@ -43,7 +43,7 @@ namespace Esiur.Stores.MongoDB
return resource;
}
[Public]
[Export]
public async AsyncReply<IResource[]> Slice(int index, int limit)
{
var list = await this.Instance.Children<IResource>();