From 28bf833e5489dac64157862a1e044065ff47864c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Fri, 2 Oct 2020 11:06:06 +0300 Subject: [PATCH] Used logger for BlazoriseUiNotificationService --- .../BlazoriseUI/BlazoriseUiNotificationService.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.BlazoriseUI/Volo/Abp/BlazoriseUI/BlazoriseUiNotificationService.cs b/framework/src/Volo.Abp.BlazoriseUI/Volo/Abp/BlazoriseUI/BlazoriseUiNotificationService.cs index 00ef875790..5163e05467 100644 --- a/framework/src/Volo.Abp.BlazoriseUI/Volo/Abp/BlazoriseUI/BlazoriseUiNotificationService.cs +++ b/framework/src/Volo.Abp.BlazoriseUI/Volo/Abp/BlazoriseUI/BlazoriseUiNotificationService.cs @@ -1,4 +1,6 @@ using System.Threading.Tasks; +using Microsoft.Extensions.Logging; +using Microsoft.Extensions.Logging.Abstractions; using Volo.Abp.AspNetCore.Components.WebAssembly; using Volo.Abp.DependencyInjection; @@ -7,9 +9,17 @@ namespace Volo.Abp.BlazoriseUI [Dependency(ReplaceServices = true)] public class BlazoriseUiNotificationService : IUiNotificationService, ITransientDependency { + public ILogger Logger { get; set; } + + public BlazoriseUiNotificationService() + { + Logger = NullLogger.Instance; + } + public Task Info(string message) { - throw new System.NotImplementedException(); + Logger.LogInformation(message); + return Task.CompletedTask; } } }