ScheduleTaskHelper.Notify
1.0.7
dotnet add package ScheduleTaskHelper.Notify --version 1.0.7
NuGet\Install-Package ScheduleTaskHelper.Notify -Version 1.0.7
<PackageReference Include="ScheduleTaskHelper.Notify" Version="1.0.7" />
<PackageVersion Include="ScheduleTaskHelper.Notify" Version="1.0.7" />
<PackageReference Include="ScheduleTaskHelper.Notify" />
paket add ScheduleTaskHelper.Notify --version 1.0.7
#r "nuget: ScheduleTaskHelper.Notify, 1.0.7"
#:package ScheduleTaskHelper.Notify@1.0.7
#addin nuget:?package=ScheduleTaskHelper.Notify&version=1.0.7
#tool nuget:?package=ScheduleTaskHelper.Notify&version=1.0.7
ScheduleTaskHelper.Notify
ScheduleTaskHelper.Notify is a notification framework designed for .NET applications. It provides multiple notification mechanisms, including logging, console output, and email notifications. This framework is designed to be extensible, allowing developers to implement custom notification methods as needed.
Features
- Extensibility: Easily extendable to support additional notification mechanisms.
Key Components
Interfaces
- INotify: Defines the basic contract for notification mechanisms with a
Notify
method. - NotifyExtensions: Provides an extension method
NotifyAll
to send notifications through multipleINotify
implementations.
Getting Started
Prerequisites
- .NET 8.0 SDK
Installation
- Clone the repository.
- Navigate to the
ScheduleTaskHelper.Notify
project directory. - Build the project using the .NET CLI:
dotnet build
Usage
Log Notifications
Use LogNotify
to send notifications to the logging system:
var logger = serviceProvider.GetRequiredService<ILogger<LogNotify>>();
var logNotify = new LogNotify(logger);
logNotify.Notify("This is a log notification.");
Notify All
Use the NotifyAll
extension method to send notifications through multiple mechanisms:
var notifies = new List<INotify> { logNotify, consoleNotify, mailNotify };
notifies.NotifyAll("This is a notification to all mechanisms.");
Contributing
Contributions are welcome! Please fork the repository and submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
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 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 is compatible. 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. |
-
net7.0
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
-
net8.0
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.8)
-
net9.0
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.8)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ScheduleTaskHelper.Notify:
Package | Downloads |
---|---|
ScheduleTaskHelper.Core
ScheduleTaskHelper 是一個功能強大的任務排程與執行框架,專為 .NET 應用程式設計。它支援多種任務排程模式(包括定時與 Cron 表達式),並整合了分散式鎖機制、任務重試佇列與事件驅動架構,確保任務執行的可靠性與高效性。此外,該框架支援插件式架構,允許動態載入外部插件,適合用於分散式系統或需要高效任務管理的應用場景。 |
GitHub repositories
This package is not used by any popular GitHub repositories.