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
<PackageReference Include="Cogito.AspNet.ServiceModel" Version="0.1.2" />
<PackageVersion Include="Cogito.AspNet.ServiceModel" Version="0.1.2" />
<PackageReference Include="Cogito.AspNet.ServiceModel" />
paket add Cogito.AspNet.ServiceModel --version 0.1.2
#r "nuget: Cogito.AspNet.ServiceModel, 0.1.2"
#:package Cogito.AspNet.ServiceModel@0.1.2
#addin nuget:?package=Cogito.AspNet.ServiceModel&version=0.1.2
#tool nuget:?package=Cogito.AspNet.ServiceModel&version=0.1.2
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 | Versions 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. |
-
.NETFramework 4.6.2
- Microsoft.AspNet.WebApi.Client (>= 6.0.0)
- Microsoft.AspNet.WebApi.Core (>= 5.3.0)
- System.ServiceModel.Http (>= 10.0.652802)
- System.ServiceModel.Primitives (>= 10.0.652802)
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 |