Transmitly.Microsoft.Aspnet.Mvc 0.1.0-4.dcfd625

This is a prerelease version of Transmitly.Microsoft.Aspnet.Mvc.
There is a newer version of this package available.
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                
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="Transmitly.Microsoft.Aspnet.Mvc" Version="0.1.0-4.dcfd625" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Transmitly.Microsoft.Aspnet.Mvc --version 0.1.0-4.dcfd625                
#r "nuget: Transmitly.Microsoft.Aspnet.Mvc, 0.1.0-4.dcfd625"                
#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 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 Compatible and additional computed target framework versions.
.NET Framework net471 is compatible.  net472 is compatible.  net48 is compatible.  net481 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.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