Browse Source

Merge pull request #5711 from abpframework/ui-notification-service-additional-methods

Add Remaining Methods To The IUINotificationService.
pull/5726/head
Halil İbrahim Kalkan 6 years ago
committed by GitHub
parent
commit
0469721c2c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/IUiNotificationService.cs
  2. 14
      framework/src/Volo.Abp.AspNetCore.Components.WebAssembly/Volo/Abp/AspNetCore/Components/WebAssembly/NullUiNotificationService.cs
  3. 15
      framework/src/Volo.Abp.BlazoriseUI/BlazoriseUiNotificationService.cs

3
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);
}
}

14
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;
}
}
}

15
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;
}
}
}

Loading…
Cancel
Save