Solution.Framework.Notifier
7.0.1
See the version list below for details.
dotnet add package Solution.Framework.Notifier --version 7.0.1
NuGet\Install-Package Solution.Framework.Notifier -Version 7.0.1
<PackageReference Include="Solution.Framework.Notifier" Version="7.0.1" />
paket add Solution.Framework.Notifier --version 7.0.1
#r "nuget: Solution.Framework.Notifier, 7.0.1"
// Install Solution.Framework.Notifier as a Cake Addin #addin nuget:?package=Solution.Framework.Notifier&version=7.0.1 // Install Solution.Framework.Notifier as a Cake Tool #tool nuget:?package=Solution.Framework.Notifier&version=7.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 | True | 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 | True | 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 | True | notification list |
NotifierClass.AddNotifications(<validationResult>, "<contextName>", "<eventName>", "<key>", <notificationType>);
Parameter | Required | Default Value | Description |
---|---|---|---|
validationResult | True | 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 | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net7.0
- FluentValidation.AspNetCore (>= 11.3.0)
- Solution.Framework.Default (>= 7.0.1)
- Solution.Framework.Json (>= 7.0.1)
- System.Diagnostics.EventLog (>= 7.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.