![]() |
VOOZH | about |
dotnet add package PaySky.NotificationService --version 1.0.11
NuGet\Install-Package PaySky.NotificationService -Version 1.0.11
<PackageReference Include="PaySky.NotificationService" Version="1.0.11" />
<PackageVersion Include="PaySky.NotificationService" Version="1.0.11" />Directory.Packages.props
<PackageReference Include="PaySky.NotificationService" />Project file
paket add PaySky.NotificationService --version 1.0.11
#r "nuget: PaySky.NotificationService, 1.0.11"
#:package PaySky.NotificationService@1.0.11
#addin nuget:?package=PaySky.NotificationService&version=1.0.11Install as a Cake Addin
#tool nuget:?package=PaySky.NotificationService&version=1.0.11Install as a Cake Tool
This package bundles the notification application and infrastructure layers, exposing a single extension method that wires up Hangfire, email, SMS, and logging dependencies.
dotnet add package PaySky.NotificationService
Add a NotificationService section to your configuration source:
"NotificationService": {
"Hangfire": {
"ConnectionString": "Server=sqlserver,1433;Database=Hangfire;User Id=sa;Password=Your_password123;TrustServerCertificate=True;"
},
"Mailtrap": {
"Host": "sandbox.smtp.mailtrap.io",
"Port": 2525,
"Username": "user",
"Password": "pass",
"FromEmail": "noreply@your-domain.com",
"FromName": "Notification Service",
"EnableSsl": true
},
"Vongage": {
"ApiKey": "your-api-key",
"ApiSecret": "your-api-secret"
}
}
builder.Services.AddNotificationService(options =>
{
builder.Configuration.GetSection("NotificationService").Bind(options);
});
At runtime resolve INotificationRequestHandler or IJobScheduler to enqueue SMS or email notifications through Hangfire.
using NotificationService.Infrastructure.Interfaces;
using NotificationService.Infrastructure.Dtos;
public class MyService
{
private readonly INotificationRequestHandler _notificationHandler;
public MyService(INotificationRequestHandler notificationHandler)
{
_notificationHandler = notificationHandler;
}
public async Task<string> SendSmsNotification()
{
var request = new NotificationRequestDto
{
Type = "sms",
Sms = new SmsNotificationDto
{
To = "+1234567890",
Message = "Hello from PaySky!"
}
};
return await _notificationHandler.HandleAsync(request);
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.