diff --git a/src/TelemetryConsumption/Kestrel/IKestrelTelemetryConsumer.cs b/src/TelemetryConsumption/Kestrel/IKestrelTelemetryConsumer.cs
index 62bd503ed..6809097f3 100644
--- a/src/TelemetryConsumption/Kestrel/IKestrelTelemetryConsumer.cs
+++ b/src/TelemetryConsumption/Kestrel/IKestrelTelemetryConsumer.cs
@@ -17,7 +17,7 @@ public interface IKestrelTelemetryConsumer
/// ID of the connection.
/// Local endpoint for the connection.
/// Remote endpoint for the connection.
- void OnConnectionStart(DateTime timestamp, string connectionId, string localEndPoint, string remoteEndPoint) { }
+ void OnConnectionStart(DateTime timestamp, string connectionId, string? localEndPoint, string? remoteEndPoint) { }
///
/// Called at the end of a connection.
diff --git a/src/TelemetryConsumption/Kestrel/KestrelEventListenerService.cs b/src/TelemetryConsumption/Kestrel/KestrelEventListenerService.cs
index afd086a22..6e2cd3978 100644
--- a/src/TelemetryConsumption/Kestrel/KestrelEventListenerService.cs
+++ b/src/TelemetryConsumption/Kestrel/KestrelEventListenerService.cs
@@ -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;