NotificationService

I am trying to use NotificationService in my program. I think I followed the instructions consistently, but let's go in order.

  1. On Layout I set `````
  2. In the program.cs file I added builder.Services.AddScoped<NotificationService>();
  3. 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.

Sorry,
on a first point it was RadzenNotification.

The provided code looks incomplete. I am not sure if you didn't format your post or the code is missing. Check the forum FAQ for tips how to insert code snippets.

Also if you are using static rendering (SSR) check the getting started instructions and set the @rendermode appropriately.