From 3c00231d3fb16fdbf07b233000611eae1ed31056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0lkay=20=C4=B0lknur?= Date: Tue, 6 Oct 2020 12:08:39 +0300 Subject: [PATCH] additional methods added to the UINotificationService. --- .../WebAssembly/IUiNotificationService.cs | 3 +++ .../WebAssembly/NullUiNotificationService.cs | 14 ++++++++++++++ .../BlazoriseUiNotificationService.cs | 15 +++++++++++++++ 3 files changed, 32 insertions(+) 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; + } } }