This repository was archived by the owner on Nov 20, 2018. It is now read-only.
File tree 2 files changed +14
-2
lines changed
Microsoft.AspNetCore.Http/Internal
Microsoft.AspNetCore.Http.Abstractions 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ namespace Microsoft.AspNetCore.Http
10
10
{
11
11
public abstract class ConnectionInfo
12
12
{
13
+ /// <summary>
14
+ /// Gets or sets a unique identifier to represent this connection.
15
+ /// </summary>
16
+ public abstract string Id { get ; set ; }
17
+
13
18
public abstract IPAddress RemoteIpAddress { get ; set ; }
14
19
15
20
public abstract int RemotePort { get ; set ; }
@@ -22,4 +27,4 @@ public abstract class ConnectionInfo
22
27
23
28
public abstract Task < X509Certificate2 > GetClientCertificateAsync ( CancellationToken cancellationToken = new CancellationToken ( ) ) ;
24
29
}
25
- }
30
+ }
Original file line number Diff line number Diff line change @@ -39,6 +39,13 @@ public virtual void Uninitialize()
39
39
private ITlsConnectionFeature TlsConnectionFeature =>
40
40
_features . Fetch ( ref _features . Cache . TlsConnection , _newTlsConnectionFeature ) ;
41
41
42
+ /// <inheritdoc />
43
+ public override string Id
44
+ {
45
+ get { return HttpConnectionFeature . ConnectionId ; }
46
+ set { HttpConnectionFeature . ConnectionId = value ; }
47
+ }
48
+
42
49
public override IPAddress RemoteIpAddress
43
50
{
44
51
get { return HttpConnectionFeature . RemoteIpAddress ; }
@@ -80,4 +87,4 @@ struct FeatureInterfaces
80
87
public ITlsConnectionFeature TlsConnection ;
81
88
}
82
89
}
83
- }
90
+ }
You can’t perform that action at this time.
0 commit comments