Solution.Framework.Notifier
8.0.1
dotnet add package Solution.Framework.Notifier --version 8.0.1
NuGet\Install-Package Solution.Framework.Notifier -Version 8.0.1
<PackageReference Include="Solution.Framework.Notifier" Version="8.0.1" />
<PackageVersion Include="Solution.Framework.Notifier" Version="8.0.1" />
<PackageReference Include="Solution.Framework.Notifier" />
paket add Solution.Framework.Notifier --version 8.0.1
#r "nuget: Solution.Framework.Notifier, 8.0.1"
#:package Solution.Framework.Notifier@8.0.1
#addin nuget:?package=Solution.Framework.Notifier&version=8.0.1
#tool nuget:?package=Solution.Framework.Notifier&version=8.0.1
Notifier 
Notification Framework.
Notifications Type
- Debug
- Information
- Error
Syntax AddNotification
Method to add notifications
NotifierClass.AddNotification("<message>", "<contextName>", "<eventName>", "<key>", <notificationType>);
| Parameter | Required | Default Value | Description |
|---|---|---|---|
| message | Yes | notification message | |
| contextName | No | Null | notification context |
| eventName | No | Null | notification event |
| key | No | Null | notification key |
| notificationType | No | Error | notification type |
NotifierClass.AddNotification(<exception>, "<contextName>", "<eventName>", "<key>", <notificationType>);
| Parameter | Required | Default Value | Description |
|---|---|---|---|
| exception | Yes | notification exception | |
| contextName | No | Null | notification context |
| eventName | No | Null | notification event |
| key | No | Null | notification key |
| notificationType | No | Error | notification type |
Syntax AddNotifications
Method to add notifications list
NotifierClass.AddNotifications(<notifications>);
| Parameter | Required | Default Value | Description |
|---|---|---|---|
| notifications | Yes | notification list |
NotifierClass.AddNotifications(<validationResult>, "<contextName>", "<eventName>", "<key>", <notificationType>);
| Parameter | Required | Default Value | Description |
|---|---|---|---|
| validationResult | Yes | FluentValidation.AspNetCore framework validation result | |
| contextName | No | Null | notification context |
| eventName | No | Null | notification event |
| key | No | Null | notification key |
| notificationType | No | Error | notification type |
Syntax GetMessage
Method to get notification message, returning string
NotifierClass.GetMessage("<contextName>", "<eventName>", "<key>", <notificationType>);
| Parameter | Required | Default Value | Description |
|---|---|---|---|
| contextName | No | Null | notification context |
| eventName | No | Null | notification event |
| key | No | Null | notification key |
| notificationType | No | Null | notification type |
Syntax GetMessages
Method to get notification message, returning IQueryable string
NotifierClass.GetMessages("<contextName>", "<eventName>", "<key>", <notificationType>);
| Parameter | Required | Default Value | Description |
|---|---|---|---|
| contextName | No | Null | notification context |
| eventName | No | Null | notification event |
| key | No | Null | notification key |
| notificationType | No | Null | notification type |
Syntax GetNotifications
Method to get notifications, returning IQueryable Notification
NotifierClass.GetNotifications("<contextName>", "<eventName>", "<key>", <notificationType>);
| Parameter | Required | Default Value | Description |
|---|---|---|---|
| contextName | No | Null | notification context |
| eventName | No | Null | notification event |
| key | No | Null | notification key |
| notificationType | No | Null | notification type |
Syntax HasNotifications
Method to return true or false if exists notifications
NotifierClass.HasNotifications("<contextName>", "<eventName>", "<key>", <notificationType>);
| Parameter | Required | Default Value | Description |
|---|---|---|---|
| contextName | No | Null | notification context |
| eventName | No | Null | notification event |
| key | No | Null | notification key |
| notificationType | No | Null | notification type |
Syntax NewException
Method to return Exception if exists notifications type "Error"
NotifierClass.HasNotifications("<contextName>", "<eventName>", "<key>");
| Parameter | Required | Default Value | Description |
|---|---|---|---|
| contextName | No | Null | notification context |
| eventName | No | Null | notification event |
| key | No | Null | notification key |
Syntax RemoveNotifications
Method to remove notifications
NotifierClass.RemoveNotifications("<contextName>", "<eventName>", "<key>", <notificationType>);
| Parameter | Required | Default Value | Description |
|---|---|---|---|
| contextName | No | Null | notification context |
| eventName | No | Null | notification event |
| key | No | Null | notification key |
| notificationType | No | Null | notification type |
Syntax GetNotificationTypeEnum
Method to get notification type enum
NotifierClass.GetNotificationTypeEnum("<notificationType>");
| Parameter | Required | Default Value | Description |
|---|---|---|---|
| notificationType | Yes | notification type |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- FluentValidation.AspNetCore (>= 11.3.0)
- Solution.Framework.Default (>= 8.0.0)
- Solution.Framework.Json (>= 8.0.0)
- System.Diagnostics.EventLog (>= 8.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Solution.Framework.Notifier:
| Package | Downloads |
|---|---|
|
Solution.Framework.Repository
Repository Framework |
|
|
Solution.Framework.Http
Http Framework |
GitHub repositories
This package is not used by any popular GitHub repositories.