RKSoftware.Tychron.Middleware 0.0.10

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package RKSoftware.Tychron.Middleware --version 0.0.10
NuGet\Install-Package RKSoftware.Tychron.Middleware -Version 0.0.10
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="RKSoftware.Tychron.Middleware" Version="0.0.10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RKSoftware.Tychron.Middleware --version 0.0.10
#r "nuget: RKSoftware.Tychron.Middleware, 0.0.10"
#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.
// Install RKSoftware.Tychron.Middleware as a Cake Addin
#addin nuget:?package=RKSoftware.Tychron.Middleware&version=0.0.10

// Install RKSoftware.Tychron.Middleware as a Cake Tool
#tool nuget:?package=RKSoftware.Tychron.Middleware&version=0.0.10

About

This package contains Middlewares that can serve as Webhooks for Tychron SMS and MMS Delivery Reports. These endpoints can also be used to Receive SMS / MMS / SMS DLR / MMS DLR messages from Tychron API.

How To Use

  • Register services in Startup.cs or Program.cs
services.RegisterTychronServices();
  • Register Middleware in Startup.cs or Program.cs
// Register Tychron Middleware for SMS
app.UseTychronMiddleware("/tychron/handler", (appBuilder) =>
{
    // Use Basic Auth for Tychron requests
    appBuilder.UseTychronBasicAuth("username", "password");

    // Use Bearer Auth for Tychron requests
    // appBuilder.UseTychronBearerAuth("token");
});

Tychron Webhook supports Basic and Bearer Authentication. You can use any of the two methods to authenticate Tychron requests.

// Use Basic Auth for Tychron requests
appBuilder.UseTychronBasicAuth("username", "password");

// Use Bearer Auth for Tychron requests
// appBuilder.UseTychronBearerAuth("token");

Register Tychron Authentication Middleware only in AuthConfigurator parameter of UseTychronMiddleware method to make auth affect only Tychron requests.

Handing Tychron Webhook Requests

To Be able to handle Tychron Webhook requests you need to create a class that implements IWebhookHandler<T> interface and register it in DI container.

T - Incoming Webhook Model. It can be one of the following:

  • SmsWebhookModel - Incoming SMS Webhook Model
  • MmsWebhookModel - Incoming MMS Webhook Model
  • DlrWebhookModel - Incoming SMS and MMS DLR Webhook Model
services.AddScoped<IWebhookHandler<SmsWebhookModel>, SmsWebhookHandler>();
services.AddScoped<IWebhookHandler<MmsWebhookModel>, MmsWebhookHandler>();
services.AddScoped<IWebhookHandler<DlrWebhookModel>, DlrWebhookHandler>();
Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.0.11-alpha.0.17 46 4/17/2024
0.0.10 113 4/17/2024
0.0.10-alpha.0.16 42 4/17/2024
0.0.9 78 4/17/2024
0.0.8 77 4/17/2024
0.0.8-alpha.0.14 46 4/15/2024
0.0.7 83 4/15/2024
0.0.7-alpha.0.13 43 4/15/2024
0.0.6 88 4/15/2024
0.0.5 196 3/11/2024
0.0.5-alpha.0.12 46 3/11/2024
0.0.4 223 2/9/2024
0.0.4-alpha.0.11 43 2/9/2024
0.0.3 207 2/9/2024
0.0.3-alpha.0.10 48 2/9/2024
0.0.2 254 1/27/2024
0.0.2-alpha.0.9 44 1/27/2024
0.0.2-alpha.0.8 40 1/27/2024
0.0.2-alpha.0.7 40 1/27/2024
0.0.1 233 1/27/2024
0.0.1-alpha.0.17 45 4/15/2024
0.0.1-alpha.0.16 49 4/15/2024
0.0.1-alpha.0.15 47 3/11/2024
0.0.1-alpha.0.14 43 2/9/2024
0.0.1-alpha.0.13 42 2/9/2024
0.0.1-alpha.0.12 44 1/27/2024
0.0.1-alpha.0.11 46 1/27/2024
0.0.1-alpha.0.10 45 1/27/2024
0.0.1-alpha.0.9 41 1/27/2024
0.0.1-alpha.0.8 46 1/27/2024
0.0.1-alpha.0.7 42 1/27/2024
0.0.1-alpha.0.6 41 1/27/2024
0.0.1-alpha.0.5 44 1/27/2024
0.0.1-alpha.0.4 38 1/27/2024
0.0.1-alpha.0.3 41 1/27/2024
0.0.1-alpha.0.2 42 1/27/2024
0.0.1-alpha.0.1 44 1/27/2024