Adding
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
using Blazored.Toast.Services;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Serilog;
|
||||
|
||||
|
||||
namespace ReserveManagementSystemUI.Pages
|
||||
{
|
||||
public partial class Test
|
||||
{
|
||||
|
||||
[Inject]
|
||||
IToastService ToastService { get; set; }
|
||||
|
||||
private void TestSeqError()
|
||||
{
|
||||
Log.Error("Test error logging from RMS");
|
||||
ToastService.ShowSuccess("Logged Error");
|
||||
}
|
||||
|
||||
private void TestSeqInfo()
|
||||
{
|
||||
Log.Information("Test information logging from RMS");
|
||||
ToastService.ShowSuccess("Logged Information");
|
||||
}
|
||||
|
||||
private void TestSeqWarn()
|
||||
{
|
||||
Log.Warning("Test warning logging from RMS");
|
||||
ToastService.ShowSuccess("Logged Warning");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user