diff --git a/src/MongoDM/MongoDM.csproj b/src/MongoDM/MongoDM.csproj
index 330a1b8f..0a4a5fc4 100644
--- a/src/MongoDM/MongoDM.csproj
+++ b/src/MongoDM/MongoDM.csproj
@@ -1,23 +1,23 @@
- netcoreapp2.2
+ netstandard2.0
true
Digicando.MongoDM
true
- 0.18.2
+ 0.18.3
Digicando Srl
ODM framework for MongoDB
-
-
+
+
-
-
-
+
+
+
diff --git a/src/MongoDM/Serialization/DocumentSchemaMemberMap.cs b/src/MongoDM/Serialization/DocumentSchemaMemberMap.cs
index 41af879a..a79c176c 100644
--- a/src/MongoDM/Serialization/DocumentSchemaMemberMap.cs
+++ b/src/MongoDM/Serialization/DocumentSchemaMemberMap.cs
@@ -60,7 +60,7 @@ public IEnumerable MemberPathToId
// Methods.
public string MemberPathToString() =>
- string.Join('.', MemberPath.Select(member => member.MemberMap.MemberInfo.Name));
+ string.Join(".", MemberPath.Select(member => member.MemberMap.MemberInfo.Name));
public string FullPathToString() => $"{RootModelType.Name}.{MemberPathToString()}";
diff --git a/src/MongoDM/ServiceCollectionExtensions.cs b/src/MongoDM/ServiceCollectionExtensions.cs
index 266bd658..4945335d 100644
--- a/src/MongoDM/ServiceCollectionExtensions.cs
+++ b/src/MongoDM/ServiceCollectionExtensions.cs
@@ -23,6 +23,8 @@ public static void AddMongoDM(this I
services.AddSingleton();
services.AddSingleton();
services.AddSingleton();
+ services.AddSingleton();
+ services.AddSingleton();
services.AddSingleton();
// Proxy generator.
diff --git a/src/MongoDM/Utility/ContextAccessorFacade.cs b/src/MongoDM/Utility/ContextAccessorFacade.cs
index f9329bbe..d13aa6e4 100644
--- a/src/MongoDM/Utility/ContextAccessorFacade.cs
+++ b/src/MongoDM/Utility/ContextAccessorFacade.cs
@@ -9,14 +9,17 @@ class ContextAccessorFacade : IContextAccessorFacade
{
// Fields.
private readonly IHttpContextAccessor httpContextAccessor;
+ private readonly ILocalContextAccessor localContextAccessor;
private readonly IHangfireContextAccessor performContextAccessor;
// Constructors.
public ContextAccessorFacade(
IHttpContextAccessor httpContextAccessor,
+ ILocalContextAccessor localContextAccessor,
IHangfireContextAccessor performContextAccessor)
{
this.httpContextAccessor = httpContextAccessor; // Provided by Asp.Net, available only on client call.
+ this.localContextAccessor = localContextAccessor; // Optional context created by user on local async method stack.
this.performContextAccessor = performContextAccessor; // Provided by HangFire, available only during task execution.
}
@@ -25,12 +28,13 @@ public IReadOnlyDictionary