Skip to content

Commit 972fffb

Browse files
committed
Use LogicalGet/SetData to work with Async flow
1 parent a67cb07 commit 972fffb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Ninject.Web.Common.Owin/OwinBootstrapper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public Func<IDictionary<string, object>, Task> Execute(Func<IDictionary<string,
8989
{
9090
using (var scope = new OwinRequestScope())
9191
{
92-
CallContext.SetData(NinjectOwinRequestScope, scope);
92+
CallContext.LogicalSetData(NinjectOwinRequestScope, scope);
9393
context[NinjectOwinRequestScope] = scope;
9494
try
9595
{

src/Ninject.Web.Common.Owin/OwinHttpApplicationPlugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void Dispose()
4949
/// <returns>The request scope.</returns>
5050
public object GetRequestScope(IContext context)
5151
{
52-
return CallContext.GetData(OwinBootstrapper.NinjectOwinRequestScope);
52+
return CallContext.LogicalGetData(OwinBootstrapper.NinjectOwinRequestScope);
5353
}
5454

5555
/// <summary>

0 commit comments

Comments
 (0)