From 59fd6a009e4a27f081761ea4007472d7364a52d6 Mon Sep 17 00:00:00 2001 From: qinyouzeng Date: Mon, 4 Dec 2023 11:37:11 +0800 Subject: [PATCH] fix: fix extension method --- .../Extensions/ServiceExtensions.cs | 2 +- .../Traceing/ServiceExtensions.cs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.OpenTelemetry/Extensions/ServiceExtensions.cs b/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.OpenTelemetry/Extensions/ServiceExtensions.cs index 42ab7f79c..f5c8003e9 100644 --- a/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.OpenTelemetry/Extensions/ServiceExtensions.cs +++ b/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.OpenTelemetry/Extensions/ServiceExtensions.cs @@ -67,7 +67,7 @@ public static IServiceCollection AddObservable(this IServiceCollection services, return services; } - public static IApplicationBuilder UseMASAHttpReponseLog(IApplicationBuilder app) + public static IApplicationBuilder UseMASAHttpReponseLog(this IApplicationBuilder app) { return app.UseMiddleware(); } diff --git a/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.OpenTelemetry/Traceing/ServiceExtensions.cs b/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.OpenTelemetry/Traceing/ServiceExtensions.cs index c01bd15b9..6ba18572b 100644 --- a/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.OpenTelemetry/Traceing/ServiceExtensions.cs +++ b/src/Contrib/StackSdks/Masa.Contrib.StackSdks.Tsc.OpenTelemetry/Traceing/ServiceExtensions.cs @@ -1,8 +1,6 @@ // Copyright (c) MASA Stack All rights reserved. // Licensed under the Apache License. See LICENSE.txt in the project root for license information. -using StackExchange.Redis; - namespace Microsoft.Extensions.DependencyInjection; public static partial class ServiceExtensions