Cogito.AspNet.ServiceModel 0.1.2

dotnet add package Cogito.AspNet.ServiceModel --version 0.1.2
                    
NuGet\Install-Package Cogito.AspNet.ServiceModel -Version 0.1.2
                    
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="Cogito.AspNet.ServiceModel" Version="0.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cogito.AspNet.ServiceModel" Version="0.1.2" />
                    
Directory.Packages.props
<PackageReference Include="Cogito.AspNet.ServiceModel" />
                    
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 Cogito.AspNet.ServiceModel --version 0.1.2
                    
#r "nuget: Cogito.AspNet.ServiceModel, 0.1.2"
                    
#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 Cogito.AspNet.ServiceModel@0.1.2
                    
#: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=Cogito.AspNet.ServiceModel&version=0.1.2
                    
Install as a Cake Addin
#tool nuget:?package=Cogito.AspNet.ServiceModel&version=0.1.2
                    
Install as a Cake Tool

Cogito.AspNet.ServiceModel

Route WCF services through ASP.NET routing, with the route known at runtime rather than baked into web.config.

Why

WCF service activation normally means a .svc file per service and a web.config section to match. That is fixed at deploy time, which does not work when the set of endpoints depends on configuration or on tenant — and it puts .svc in every URL.

Install

dotnet add package Cogito.AspNet.ServiceModel

Use

Register a route for a service host at startup:

RouteTable.Routes.AddDynamicServiceRoute<OrderService>("services/orders");

Or mark the service and let it register itself:

[DynamicServiceRoute("services/orders")]
public class OrderService : IOrderService
{
}

DynamicServiceRouteEndpointBehavior keeps the endpoint's address consistent with the route it was reached through, so generated WSDL points back at the routed URL rather than the physical one. DynamicServiceRouteMessageProperty carries the matched route data onto the message for the service to read.

Targets .NET Framework.

License

MIT.

Product Compatible and additional computed target framework versions.
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  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.2 55 11/28/2026
0.1.1 120 9/14/2026
0.1.0-unstable0002 1,385 7/14/2018