MultiSms 1.0.4
dotnet add package MultiSms --version 1.0.4
NuGet\Install-Package MultiSms -Version 1.0.4
<PackageReference Include="MultiSms" Version="1.0.4" />
paket add MultiSms --version 1.0.4
#r "nuget: MultiSms, 1.0.4"
// Install MultiSms as a Cake Addin #addin nuget:?package=MultiSms&version=1.0.4 // Install MultiSms as a Cake Tool #tool nuget:?package=MultiSms&version=1.0.4
Multi Sms Provider for .NET
Multi Sms Providers for .NET is a C# package designed to simplify the process of integrating multiple SMS service providers into your .NET application. The package is easy to use and includes support for various SMS providers such as Twilio, NetGSM, İleti Merkezi, JetSms, Mutlucell, Mas GSM and SmsVitrini.
📞 Providers
🔗 Links
Install
Install NuGet\Install-Package MultiSms
package using NuGet to get started.
Usage
Sms Service
var _smsFactory = MultiSmsServiceFactory.Instance.UseOptions(options =>
{
options.DefaultOrginator = "test_orginator";
options.DefaultProvider = NetGsmProvider.Name;
})
.UseNetGsm("test_username", "test_password", "test_orginator")
.Create();
var message = MessageBody.Compose()
.To("+905325321221")
.WithContent("test message")
.Build();
var result = await _smsFactory.SendAsync(message);
Dependency Injection
builder.Services.AddMultiSms(options =>
{
options.DefaultProvider = NetGsmProvider.Name;
options.DefaultOrginator = "test_orginator";
})
.UseNetGsm(
username: "test_username"
password: "test_password",
orginator: "test_orginator"
);
public class NetGsmController : ControllerBase
{
private readonly ILogger<NetGsmController> _logger;
private readonly ISmsService _smsService;
public NetGsmController(ILogger<NetGsmController> logger, ISmsService smsService)
{
_logger = logger;
_smsService = smsService;
}
[HttpGet]
public async Task<SendingResult> Send(CancellationToken cancellationToken)
{
var message = MessageBody.Compose()
.To("+905325321221")
.WithContent("test message")
.Build();
return await _smsService.SendAsync(message, cancellationToken);
}
}
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
- Microsoft.Extensions.DependencyInjection (>= 7.0.0)
NuGet packages (7)
Showing the top 5 NuGet packages that depend on MultiSms:
Package | Downloads |
---|---|
MultiSms.NetGsm.Provider
Multi Sms Providers for .NET is a C# package designed to simplify the process of integrating multiple SMS service providers into your .NET application. The package is easy to use and includes support for various SMS providers such as Twilio, NetGSM, İleti Merkezi, JetSms, Mutlucell, Mas GSM and SmsVitrini. |
|
MultiSms.IletiMerkezi.Provider
Multi Sms Providers for .NET is a C# package designed to simplify the process of integrating multiple SMS service providers into your .NET application. The package is easy to use and includes support for various SMS providers such as Twilio, NetGSM, İleti Merkezi, JetSms, Mutlucell, Mas GSM and SmsVitrini. |
|
MultiSms.Twilio.Provider
Multi Sms Providers for .NET is a C# package designed to simplify the process of integrating multiple SMS service providers into your .NET application. The package is easy to use and includes support for various SMS providers such as Twilio, NetGSM, İleti Merkezi, JetSms, Mutlucell, Mas GSM and SmsVitrini. |
|
MultiSms.SmsVitrini.Provider
Multi Sms Providers for .NET is a C# package designed to simplify the process of integrating multiple SMS service providers into your .NET application. The package is easy to use and includes support for various SMS providers such as Twilio, NetGSM, İleti Merkezi, JetSms, Mutlucell, Mas GSM and SmsVitrini. |
|
MultiSms.JetSms.Provider
Multi Sms Providers for .NET is a C# package designed to simplify the process of integrating multiple SMS service providers into your .NET application. The package is easy to use and includes support for various SMS providers such as Twilio, NetGSM, İleti Merkezi, JetSms, Mutlucell, Mas GSM and SmsVitrini. |
GitHub repositories
This package is not used by any popular GitHub repositories.