Skip to content

Commit

Permalink
addressing PR comments. 1. Made the params nullable 2. change case of…
Browse files Browse the repository at this point in the history
… LocalEndPoint var
  • Loading branch information
ajay-sainy committed Dec 20, 2023
1 parent 9815037 commit ff4bd2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public interface IKestrelTelemetryConsumer
/// <param name="connectionId">ID of the connection.</param>
/// <param name="localEndPoint">Local endpoint for the connection.</param>
/// <param name="remoteEndPoint">Remote endpoint for the connection.</param>
void OnConnectionStart(DateTime timestamp, string connectionId, string localEndPoint, string remoteEndPoint) { }
void OnConnectionStart(DateTime timestamp, string connectionId, string? localEndPoint, string? remoteEndPoint) { }

/// <summary>
/// Called at the end of a connection.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ protected override void OnEvent(IKestrelTelemetryConsumer[] consumers, EventWrit
Debug.Assert(eventData.EventName == "ConnectionStart" && payload.Count == 3);
{
var connectionId = (string)payload[0];
var LocalEndPoint = (string)payload[1];
var remoteEndPoint = (string)payload[2];
var localEndPoint = (string?)payload[1];
var remoteEndPoint = (string?)payload[2];
foreach (var consumer in consumers)
{
consumer.OnConnectionStart(eventData.TimeStamp, connectionId, LocalEndPoint, remoteEndPoint);
consumer.OnConnectionStart(eventData.TimeStamp, connectionId, localEndPoint, remoteEndPoint);
}
}
break;
Expand Down

0 comments on commit ff4bd2b

Please sign in to comment.