|
|
@ -1,4 +1,6 @@ |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
|
|
using Microsoft.Extensions.Logging.Abstractions; |
|
|
using Volo.Abp.AspNetCore.Components.WebAssembly; |
|
|
using Volo.Abp.AspNetCore.Components.WebAssembly; |
|
|
using Volo.Abp.DependencyInjection; |
|
|
using Volo.Abp.DependencyInjection; |
|
|
|
|
|
|
|
|
@ -7,9 +9,17 @@ namespace Volo.Abp.BlazoriseUI |
|
|
[Dependency(ReplaceServices = true)] |
|
|
[Dependency(ReplaceServices = true)] |
|
|
public class BlazoriseUiNotificationService : IUiNotificationService, ITransientDependency |
|
|
public class BlazoriseUiNotificationService : IUiNotificationService, ITransientDependency |
|
|
{ |
|
|
{ |
|
|
|
|
|
public ILogger<BlazoriseUiNotificationService> Logger { get; set; } |
|
|
|
|
|
|
|
|
|
|
|
public BlazoriseUiNotificationService() |
|
|
|
|
|
{ |
|
|
|
|
|
Logger = NullLogger<BlazoriseUiNotificationService>.Instance; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public Task Info(string message) |
|
|
public Task Info(string message) |
|
|
{ |
|
|
{ |
|
|
throw new System.NotImplementedException(); |
|
|
Logger.LogInformation(message); |
|
|
|
|
|
return Task.CompletedTask; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|