mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-09-13 20:43:19 +00:00
update
This commit is contained in:
@@ -38,7 +38,8 @@ namespace Esiur.Stores.MongoDB
|
||||
[Export]
|
||||
public async AsyncReply<T> New(string name = null, object properties = null)
|
||||
{
|
||||
var resource = await Warehouse.New<T>(name, this, null, null, null, properties);
|
||||
var resource = Instance.Warehouse.CreateInstance<T>(properties);
|
||||
await Instance.Warehouse.Put(name, resource, this, null, 0);
|
||||
resource.Instance.Managers.AddRange(this.Instance.Managers.ToArray());
|
||||
return resource;
|
||||
}
|
||||
|
Reference in New Issue
Block a user