From cfc0deecf69a45e423a0c499ad7fb3e8f55d2391 Mon Sep 17 00:00:00 2001 From: Blake Niemyjski Date: Thu, 7 Jan 2021 20:31:21 -0600 Subject: [PATCH] Updated obsolete message --- .../Exceptionless.AspNetCore/ExceptionlessExtensions.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Platforms/Exceptionless.AspNetCore/ExceptionlessExtensions.cs b/src/Platforms/Exceptionless.AspNetCore/ExceptionlessExtensions.cs index bb8e39d6..ea0e236c 100644 --- a/src/Platforms/Exceptionless.AspNetCore/ExceptionlessExtensions.cs +++ b/src/Platforms/Exceptionless.AspNetCore/ExceptionlessExtensions.cs @@ -42,21 +42,21 @@ public static IApplicationBuilder UseExceptionless(this IApplicationBuilder app, return app.UseMiddleware(client); } - [Obsolete("ExceptionlessClient should be configured when adding to services collection using AddExceptionless")] + [Obsolete("UseExceptionless should be called without an overload, ExceptionlessClient should be configured when adding to services collection using AddExceptionless")] public static IApplicationBuilder UseExceptionless(this IApplicationBuilder app, Action configure) { var client = app.ApplicationServices.GetService() ?? ExceptionlessClient.Default; configure?.Invoke(client.Configuration); return app.UseExceptionless(client); } - [Obsolete("ExceptionlessClient should be configured when adding to services collection using AddExceptionless")] + [Obsolete("UseExceptionless should be called without an overload, ExceptionlessClient should be configured when adding to services collection using AddExceptionless")] public static IApplicationBuilder UseExceptionless(this IApplicationBuilder app, IConfiguration configuration) { var client = app.ApplicationServices.GetService() ?? ExceptionlessClient.Default; client.Configuration.ReadFromConfiguration(configuration); return app.UseExceptionless(client); } - [Obsolete("ExceptionlessClient should be configured when adding to services collection using AddExceptionless")] + [Obsolete("UseExceptionless should be called without an overload, ExceptionlessClient should be configured when adding to services collection using AddExceptionless")] public static IApplicationBuilder UseExceptionless(this IApplicationBuilder app, string apiKey) { var client = app.ApplicationServices.GetService() ?? ExceptionlessClient.Default; client.Configuration.ApiKey = apiKey; @@ -103,4 +103,4 @@ public static EventBuilder SetHttpContext(this EventBuilder builder, HttpContext return builder; } } -} \ No newline at end of file +}