Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit c5d1726

Browse files
committed
Expose TraceIdentifier on Httpcontext
1 parent 5ab0bda commit c5d1726

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Microsoft.AspNet.Http.Abstractions/HttpContext.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public abstract class HttpContext : IDisposable
3636

3737
public abstract ISession Session { get; set; }
3838

39+
public abstract string TraceIdentifier { get; set; }
40+
3941
public abstract void Abort();
4042

4143
public abstract void Dispose();

src/Microsoft.AspNet.Http/DefaultHttpContext.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ public override CancellationToken RequestAborted
180180
set { LifetimeFeature.RequestAborted = value; }
181181
}
182182

183+
public override string TraceIdentifier
184+
{
185+
get { return RequestIdentifierFeature.TraceIdentifier; }
186+
set { RequestIdentifierFeature.TraceIdentifier = value; }
187+
}
188+
183189
public override ISession Session
184190
{
185191
get

0 commit comments

Comments
 (0)