Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
DefaultNotificationRenderer.cs
1using System.Threading;
2using System.Threading.Tasks;
4
6{
11 {
18 public Task RenderAsync(NotificationIntent Intent, CancellationToken CancellationToken)
19 {
20 if (Intent.Presentation is NotificationPresentation.StoreOnly or NotificationPresentation.Transient)
21 return Task.CompletedTask;
22
23 _ = Intent;
24 CancellationToken.ThrowIfCancellationRequested();
25 return Task.CompletedTask;
26 }
27 }
28}
Platform-neutral intent describing how to route a notification.
NotificationPresentation Presentation
Gets or sets how the notification should be presented.
No-op renderer used until platform-specific implementations are provided.
Task RenderAsync(NotificationIntent Intent, CancellationToken CancellationToken)
Displays a local notification with the provided intent.
Renders local notifications on the platform.
Definition: ImplTypes.g.cs:58
NotificationPresentation
Presentation preference for a notification intent.