I am trying to use NotificationService in my program. I think I followed the instructions consistently, but let's go in order.
- On Layout I set `````
- In the program.cs file I added
builder.Services.AddScoped<NotificationService>();
- In the file where I want to use the notification, I programmed
[Inject
protected NotificationService NS { get; set; }
.
.
.
NotificationMessage message = new NotificationMessage{ Severity = NotificationSeverity.Warning, Summary = "Error", Detail = "No Report", Duration = 4000 };
NS.Notify(message);
I obviously did something wrong as I'm not getting a notification but I don't know what.