From 80e379ff8ccbfc6bea0f18e340baec84192022a2 Mon Sep 17 00:00:00 2001 From: Aigio Liu Date: Wed, 24 Feb 2021 22:37:37 +0800 Subject: [PATCH] fix2 --- .../ServiceCollectionExtensions.cs | 2 +- .../Services/OperationResult.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/System.Application.SteamTools.Client.Desktop/ServiceCollectionExtensions.cs b/System.Application.SteamTools.Client.Desktop/ServiceCollectionExtensions.cs index fe775a07c..a05cbdf11 100644 --- a/System.Application.SteamTools.Client.Desktop/ServiceCollectionExtensions.cs +++ b/System.Application.SteamTools.Client.Desktop/ServiceCollectionExtensions.cs @@ -61,7 +61,7 @@ namespace Microsoft.Extensions.DependencyInjection /// public static IServiceCollection AddConfigFileService(this IServiceCollection services) { - services.AddSingleton(new ConfigFileServiceImpl()); + services.AddSingleton(); return services; } diff --git a/System.Application.SteamTools.Client.Desktop/Services/OperationResult.cs b/System.Application.SteamTools.Client.Desktop/Services/OperationResult.cs index b62f533a8..77cfbe35d 100644 --- a/System.Application.SteamTools.Client.Desktop/Services/OperationResult.cs +++ b/System.Application.SteamTools.Client.Desktop/Services/OperationResult.cs @@ -118,7 +118,7 @@ namespace System.Application.Services } /// - public OperationResult(OperationResultType resultType, string message, T appendData) : base(resultType, message, appendData) + public OperationResult(OperationResultType resultType, string message, object? appendData) : base(resultType, message, appendData) { }