Transmitly.Microsoft.Aspnet.Mvc
0.1.0-4.dcfd625
See the version list below for details.
dotnet add package Transmitly.Microsoft.Aspnet.Mvc --version 0.1.0-4.dcfd625
NuGet\Install-Package Transmitly.Microsoft.Aspnet.Mvc -Version 0.1.0-4.dcfd625
<PackageReference Include="Transmitly.Microsoft.Aspnet.Mvc" Version="0.1.0-4.dcfd625" />
paket add Transmitly.Microsoft.Aspnet.Mvc --version 0.1.0-4.dcfd625
#r "nuget: Transmitly.Microsoft.Aspnet.Mvc, 0.1.0-4.dcfd625"
// Install Transmitly.Microsoft.Aspnet.Mvc as a Cake Addin #addin nuget:?package=Transmitly.Microsoft.Aspnet.Mvc&version=0.1.0-4.dcfd625&prerelease // Install Transmitly.Microsoft.Aspnet.Mvc as a Cake Tool #tool nuget:?package=Transmitly.Microsoft.Aspnet.Mvc&version=0.1.0-4.dcfd625&prerelease
Transmitly.Microsoft.Aspnet.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.Aspnet.Mvc
Then add the model binders using AddChannelProviderDeliveryReportModelBinders()
:
using Transmitly;
...
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
GlobalConfiguration.Configure(WebApiConfig.Register);
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
ModelBinderProviders.BinderProviders.AddChannelProviderDeliveryReportModelBinders(ServiceLocator.GetService<IChannelProviderFactory>());
}
-or-
using Transmitly;
...
public ICommunicationsClient CreateCommunicationsClient()
{
return new CommunicationsClientBuilder()
...
.AddChannelProviderDeliveryReportModelBinders(ServiceLocator.GetService<IChannelProviderFactory>());
}
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 Framework | net471 is compatible. net472 is compatible. net48 is compatible. net481 was computed. |
-
.NETFramework 4.7.1
- Microsoft.AspNet.Mvc (>= 5.2.7)
- Transmitly (>= 0.1.0-169.5907c88)
-
.NETFramework 4.7.2
- Microsoft.AspNet.Mvc (>= 5.2.7)
- Transmitly (>= 0.1.0-169.5907c88)
-
.NETFramework 4.8
- Microsoft.AspNet.Mvc (>= 5.2.7)
- Transmitly (>= 0.1.0-169.5907c88)
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.1-1.08f9ada | 44 | 10/14/2024 |
0.1.0 | 113 | 9/11/2024 |
0.1.0-7.77f847d | 56 | 6/1/2024 |
0.1.0-4.dcfd625 | 73 | 4/10/2024 |