NotificationService remains empty

I have following code:

    private void OnInvalidSubmit(FormInvalidSubmitEventArgs args)
    {
        var message = string.Join("<br />", args.Errors);

        NotificationService.Notify(new NotificationMessage
        {
            Severity = NotificationSeverity.Warning,
            Duration = 40000,
            SummaryContent = ns =>@< RadzenText TextStyle = "TextStyle.H6" > Custom summary: < br /> @DateTime.Now </ RadzenText >,
            DetailContent = ns => @< RadzenText TextStyle = "TextStyle.H6" >@message</ RadzenText >
        });
    }

this code leads to an empty notification:


Why is that?

There is a space in front of the tag

1 Like

ah :person_facepalming:, that did the trick, thanks