ISL.NetFramework.Sms.Driver 1.0.0

dotnet add package ISL.NetFramework.Sms.Driver --version 1.0.0
                    
NuGet\Install-Package ISL.NetFramework.Sms.Driver -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ISL.NetFramework.Sms.Driver" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ISL.NetFramework.Sms.Driver" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="ISL.NetFramework.Sms.Driver" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ISL.NetFramework.Sms.Driver --version 1.0.0
                    
#r "nuget: ISL.NetFramework.Sms.Driver, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ISL.NetFramework.Sms.Driver@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ISL.NetFramework.Sms.Driver&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=ISL.NetFramework.Sms.Driver&version=1.0.0
                    
Install as a Cake Tool

ISL.NetFramework.Sms.Driver

ISL.NetFramework.Sms.Driver is a single-package SMS driver for ISL services.

It provides:

  • one-step dependency registration with AddIslSmsDriver(configuration)
  • one injectable service: ISmsDriver
  • SMS challenge issue/verify APIs
  • background queue support for fire-and-forget SMS challenge dispatch

Installation

Add NuGet package:

ISL.NetFramework.Sms.Driver

Registration

services.AddIslSmsDriver(configuration);

Usage

public sealed class OtpService
{
    private readonly ISmsDriver _smsDriver;

    public OtpService(ISmsDriver smsDriver)
    {
        _smsDriver = smsDriver;
    }

    public Task SendLoginCodeAsync(string phoneNumber, CancellationToken cancellationToken)
    {
        return _smsDriver.SendAsync(
            new SmsDriverSendRequest(
                Destination: phoneNumber,
                Purpose: "signin",
                MessageTemplate: "Your verification code is {{code}}."),
            cancellationToken);
    }
}

Configuration

Uses existing configuration sections:

  • Framework:TwoFactor
  • Framework:TwoFactor:AzureCommunication
  • Framework:Sms:Driver

Driver-specific options:

  • Framework:Sms:Driver:QueueMode (InMemory or Database, default: InMemory)
  • Framework:Sms:Driver:QueueCapacity (default: 10000)
  • Framework:Sms:Driver:MaxRetryAttempts (default: 3)
  • Framework:Sms:Driver:InitialRetryDelayMilliseconds (default: 250)
  • Framework:Sms:Driver:MaxRetryDelayMilliseconds (default: 5000)
  • Framework:Sms:Driver:UseJitter (default: true)
  • Framework:Sms:Driver:DatabasePollingIntervalMilliseconds (default: 1000, used in Database mode)
  • Framework:Sms:Driver:DatabaseBatchSize (default: 50, used in Database mode)
  • Framework:Sms:Driver:ProcessingLockTimeoutSeconds (default: 300, used in Database mode)
  • Framework:Sms:Driver:AutoCreateDatabaseQueueTable (default: false)

Example appsettings.Production.json:

{
  "Framework": {
    "Sms": {
      "Driver": {
        "QueueMode": "Database",
        "QueueCapacity": 50000,
        "MaxRetryAttempts": 5,
        "InitialRetryDelayMilliseconds": 500,
        "MaxRetryDelayMilliseconds": 15000,
        "UseJitter": true,
        "DatabasePollingIntervalMilliseconds": 500,
        "DatabaseBatchSize": 100,
        "ProcessingLockTimeoutSeconds": 300,
        "AutoCreateDatabaseQueueTable": false
      }
    }
  }
}
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ISL.NetFramework.Sms.Driver:

Package Downloads
ISL.NetFramework.Communication.Driver

Single-package communication driver that unifies Email, SMS, and File Storage access for ISL services.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 50 5/18/2026