From e2bcd4a049a63ada5d9fc69ede2fdfc3d9cb22bc Mon Sep 17 00:00:00 2001 From: Zhiyuan Liang Date: Thu, 14 Mar 2024 13:03:47 +0800 Subject: [PATCH] update --- .../TargetingTelemetryInitializer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.FeatureManagement.Telemetry.ApplicationInsights.AspNetCore/TargetingTelemetryInitializer.cs b/src/Microsoft.FeatureManagement.Telemetry.ApplicationInsights.AspNetCore/TargetingTelemetryInitializer.cs index 5614a3f3..e01bd9e4 100644 --- a/src/Microsoft.FeatureManagement.Telemetry.ApplicationInsights.AspNetCore/TargetingTelemetryInitializer.cs +++ b/src/Microsoft.FeatureManagement.Telemetry.ApplicationInsights.AspNetCore/TargetingTelemetryInitializer.cs @@ -34,12 +34,12 @@ protected override void OnInitializeTelemetry(HttpContext httpContext, RequestTe { if (telemetry == null) { - throw new ArgumentNullException("telemetry"); + throw new ArgumentNullException(nameof(telemetry)); } if (httpContext == null) { - throw new ArgumentNullException("httpContext"); + throw new ArgumentNullException(nameof(httpContext)); } // Extract the targeting id from the http context