using Esyur.Core; using Esyur.Data; using Esyur.Proxy; using Esyur.Resource; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Esyur.Stores.MongoDB { public class MongoDBStore : MongoDBStore where T:IResource { [ResourceFunction] public T Create(string name, Structure values) { return Warehouse.New(name, this, null, null, null, null, values); } [ResourceFunction] public async AsyncReply Slice(int index, int limit) { var list = await this.Instance.Children(); return list.Skip(index).Take(limit).ToArray(); } } }