Skip to content

Smrt.Notifications

Assembly: Smrt.Notifications

Namespace: Smrt.Notifications

INotificationService

Contract for broadcasting notifications to interested subscribers without coupling publishers to UI concerns.

Events

NotificationPublished

Raised whenever a new Smrt.Notifications.Notification is published.

Methods

Publish(Smrt.Notifications.Notification notification)

Publishes the specified notification, notifying all current subscribers.

Parameters

  • notification — The notification payload to distribute.

Notification

Immutable notification payload describing the message to surface to the user.

Methods

Notification(Smrt.Notifications.NotificationLevel Level, string Title, string Message, string IconKey, DateTimeOffset? Timestamp)

Immutable notification payload describing the message to surface to the user.

Parameters

  • Level — Severity classification that informs presentation (color, affordances).
  • Title — Headline for the notification (required).
  • Message — Optional explanatory body text.
  • IconKey — Optional UI token that resolves to an icon asset.
  • Timestamp — Optional creation timestamp. Defaults to System.DateTimeOffset.UtcNow.

Propertys

IconKey

Optional UI token that resolves to an icon asset.

Level

Severity classification that informs presentation (color, affordances).

Message

Optional explanatory body text.

Timestamp

Optional creation timestamp. Defaults to System.DateTimeOffset.UtcNow.

Title

Headline for the notification (required).

When

Resolved timestamp for the notification; returns System.DateTimeOffset.UtcNow when no explicit timestamp was supplied.

NotificationAssemblyMarker

Assembly marker used to anchor dependency injection scanning for the notifications library.

NotificationLevel

Severity classification applied to notifications; used by the shell to determine styling and escalation.

Fields

Error

Critical failure that blocks progress and should be surfaced prominently.

Info

Informational message that requires no immediate user action.

Success

Positive confirmation that an operation completed successfully.

Warning

Cautionary alert signaling a recoverable issue that may need attention.

NotificationService

Default in-memory implementation of Smrt.Notifications.INotificationService that fans out notifications to subscribers.

Events

NotificationPublished

No summary provided.

Methods

Publish(Smrt.Notifications.Notification param0)

No summary provided.