diff --git a/framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/IUiNotificationService.cs b/framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/IUiNotificationService.cs index a25bf75ae0..a9816dc325 100644 --- a/framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/IUiNotificationService.cs +++ b/framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/IUiNotificationService.cs @@ -5,5 +5,8 @@ namespace Volo.Abp.AspNetCore.Components.WebAssembly public interface IUiNotificationService { Task Info(string message); + Task Success(string message); + Task Warn(string message); + Task Error(string message); } } diff --git a/framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/NullUiNotificationService.cs b/framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/NullUiNotificationService.cs index d93aaa8e83..85ee10287c 100644 --- a/framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/NullUiNotificationService.cs +++ b/framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/NullUiNotificationService.cs @@ -9,5 +9,19 @@ namespace Volo.Abp.AspNetCore.Components.WebAssembly { return Task.CompletedTask; } + + public Task Success(string message) + { + return Task.CompletedTask; + } + + public Task Warn(string message) + { + return Task.CompletedTask; + } + public Task Error(string message) + { + return Task.CompletedTask; + } } } \ No newline at end of file diff --git a/framework/src/Volo.Abp.BlazoriseUI/BlazoriseUiNotificationService.cs b/framework/src/Volo.Abp.BlazoriseUI/BlazoriseUiNotificationService.cs index 5163e05467..549a1f4d07 100644 --- a/framework/src/Volo.Abp.BlazoriseUI/BlazoriseUiNotificationService.cs +++ b/framework/src/Volo.Abp.BlazoriseUI/BlazoriseUiNotificationService.cs @@ -21,5 +21,20 @@ namespace Volo.Abp.BlazoriseUI Logger.LogInformation(message); return Task.CompletedTask; } + + public Task Success(string message) + { + return Task.CompletedTask; + } + + public Task Warn(string message) + { + return Task.CompletedTask; + } + + public Task Error(string message) + { + return Task.CompletedTask; + } } }