|
|
@@ -333,15 +333,14 @@ namespace InABox.API
|
|
|
return new ValueTask<IResponse?>(request.Respond().Status(ResponseStatus.NotFound).Build());
|
|
|
}
|
|
|
|
|
|
- private Dictionary<string, Type>? _persistentRemotable;
|
|
|
+ private Dictionary<string, Type>? _remotable;
|
|
|
|
|
|
private Type? GetEntity(string entityName)
|
|
|
{
|
|
|
- _persistentRemotable ??= CoreUtils.TypeList(
|
|
|
+ _remotable ??= CoreUtils.TypeList(
|
|
|
e => e.IsSubclassOf(typeof(Entity)) &&
|
|
|
- e.GetInterfaces().Contains(typeof(IRemotable)) &&
|
|
|
- e.GetInterfaces().Contains(typeof(IPersistent))).ToDictionary(x => x.Name, x => x);
|
|
|
- return _persistentRemotable.GetValueOrDefault(entityName);
|
|
|
+ e.GetInterfaces().Contains(typeof(IRemotable))).ToDictionary(x => x.Name, x => x);
|
|
|
+ return _remotable.GetValueOrDefault(entityName);
|
|
|
}
|
|
|
|
|
|
#endregion
|