Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm360 committed Aug 27, 2024
1 parent 13b23d8 commit 1ee334a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static IMongODMConfiguration AddMongODM<TProxyGenerator, TTaskRunner>(
BsonSerializer.RegisterDiscriminatorConvention(typeof(object),
new HierarchicalProxyTolerantDiscriminatorConvention("_t", execContext));

/* For same motive of handle static calls to BsonSerializer.LookupSerializer(Type),
/* For same reason of handle static calls to BsonSerializer.LookupSerializer(Type),
* we need a way to inject a current context accessor. This is a modification on official drivers,
* waiting an official implementation of serialization contexts.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/MongODM.AspNetCore/MongODM.AspNetCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="ExecutionContext.AspNetCore" Version="1.2.0" />
<PackageReference Include="ExecutionContext.AspNetCore" Version="1.3.0" />
<PackageReference Include="GitVersion.MsBuild" Version="5.12.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion src/MongODM.Core/DbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ protected virtual void Dispose(bool disposing)
public IDiscriminatorRegistry DiscriminatorRegistry { get; private set; } = default!;
public virtual IEnumerable<DocumentMigration> DocumentMigrationList { get; } = Array.Empty<DocumentMigration>();
public IExecutionContext ExecutionContext { get; private set; } = default!;
public string Identifier => Options?.Identifier ?? GetType().Name;
public string Identifier => Options.Identifier ?? GetType().Name;
public bool IsSeeded
{
get
Expand Down
4 changes: 2 additions & 2 deletions src/MongODM.Core/MongODM.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

<ItemGroup>
<PackageReference Include="Castle.Core" Version="5.1.1" />
<PackageReference Include="Etherna.MongoDB.Driver" Version="2.28.0" />
<PackageReference Include="ExecutionContext" Version="1.2.0" />
<PackageReference Include="Etherna.MongoDB.Driver" Version="2.28.2" />
<PackageReference Include="ExecutionContext" Version="1.3.0" />
<PackageReference Include="GitVersion.MsBuild" Version="5.12.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion src/MongODM.Core/Utility/DbExecutionContextHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void Dispose()

var requestes = (ICollection<DbExecutionContextHandler>)executionContext.Items[HandlerKey]!;

//get the last with a stack system, for recursing calls betweem different dbContexts
//get the last with a stack system, for recursing calls between different dbContexts
lock (((ICollection)requestes).SyncRoot)
return requestes.Reverse().FirstOrDefault()?.DbContext;
}
Expand Down

0 comments on commit 1ee334a

Please sign in to comment.