Skip to content

Commit 513f700

Browse files
Rename Id to ConnectionId
MongoDb changes `Id` to `_id`, which is incredibly annoying.
1 parent 0070a18 commit 513f700

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

EntityDb.Mvc/Sources/MvcSourceConnection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace EntityDb.Mvc.Sources
55
/// <summary>
66
/// Represents the connection used by agent to request a transaction using a <see cref="Microsoft.AspNetCore.Mvc.Controller"/>.
77
/// </summary>
8-
public sealed record MvcSourceConnection(string Id, string? RemoteIpAddress, int RemotePort, string? LocalIpAddress, int LocalPort)
8+
public sealed record MvcSourceConnection(string ConnectionId, string? RemoteIpAddress, int RemotePort, string? LocalIpAddress, int LocalPort)
99
{
1010
/// <summary>
1111
/// Returns a new instance of <see cref="MvcSourceConnection"/> that is mapped from an <see cref="HttpContext"/>.
@@ -16,7 +16,7 @@ public static MvcSourceConnection FromHttpContext(HttpContext httpContext)
1616
{
1717
return new MvcSourceConnection
1818
(
19-
Id: httpContext.Connection.Id,
19+
ConnectionId: httpContext.Connection.Id,
2020
RemoteIpAddress: httpContext.Connection.RemoteIpAddress?.ToString(),
2121
RemotePort: httpContext.Connection.RemotePort,
2222
LocalIpAddress: httpContext.Connection.LocalIpAddress?.ToString(),

0 commit comments

Comments
 (0)