Transmitly.Microsoft.AspnetCore.Mvc
0.1.0-1.90590ba
dotnet add package Transmitly.Microsoft.AspnetCore.Mvc --version 0.1.0-1.90590ba
NuGet\Install-Package Transmitly.Microsoft.AspnetCore.Mvc -Version 0.1.0-1.90590ba
<PackageReference Include="Transmitly.Microsoft.AspnetCore.Mvc" Version="0.1.0-1.90590ba" />
paket add Transmitly.Microsoft.AspnetCore.Mvc --version 0.1.0-1.90590ba
#r "nuget: Transmitly.Microsoft.AspnetCore.Mvc, 0.1.0-1.90590ba"
// Install Transmitly.Microsoft.AspnetCore.Mvc as a Cake Addin #addin nuget:?package=Transmitly.Microsoft.AspnetCore.Mvc&version=0.1.0-1.90590ba&prerelease // Install Transmitly.Microsoft.AspnetCore.Mvc as a Cake Tool #tool nuget:?package=Transmitly.Microsoft.AspnetCore.Mvc&version=0.1.0-1.90590ba&prerelease
Transmitly.Microsoft.AspnetCore.Mvc
A Transmitly utility package for handling registration and controllers for channel provider delivery reports.
Getting started
To use install the NuGet package:
dotnet add package Transmitly.Microsoft.AspnetCore.Mvc
Then add the model binders using AddChannelProviderDeliveryReportModelBinders()
:
using Transmitly;
...
public static void Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
builder.Services
.AddTransmitly(tly => {...})
.AddChannelProviderDeliveryReportModelBinders()
}
Using Default Delivery Report Controller
Inheriting the ChannelProviderDeliveryReportController will setup an POST
route named, HandleDeliveryReport
(example: https://yourapp.com/Communications/HandleDeliveryReport
) that will automatically trigger
your registered delivery report handlers for the provided ICommunicationsClient.
The HandleDeliveryReport
method can be overridden. Allowing you to customize behaviors and set route specifics.
MyDeliveryReportsController.cs
using System;
using System.Web.Mvc;
using Transmitly;
using Transmitly.Delivery;
namespace Transmitly.Aspnet.Mvc.Examples
{
[AllowAnonymous]
public class CommunicationsController : ChannelProviderDeliveryReportController
{
public CommunicationsController(ICommunicationsClient communicationsClient) : base(communicationsClient)
{
}
}
}
- See the Transmitly project for more details on how use and configure the library.
<picture> <source media="(prefers-color-scheme: dark)" srcset="https://github.com/transmitly/transmitly/assets/3877248/524f26c8-f670-4dfa-be78-badda0f48bfb"> <img alt="an open-source project sponsored by CiLabs of Code Impressions, LLC" src="https://github.com/transmitly/transmitly/assets/3877248/34239edd-234d-4bee-9352-49d781716364" width="350" align="right"> </picture>
Copyright © Code Impressions, LLC - Provided under the Apache License, Version 2.0.
Product | Versions 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. |
-
net8.0
- Transmitly (>= 0.1.0-211.ec126bc)
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.1.0-1.90590ba | 66 | 10/19/2024 |