Cogito.AspNetCore.ServiceModel
1.2.3
dotnet add package Cogito.AspNetCore.ServiceModel --version 1.2.3
NuGet\Install-Package Cogito.AspNetCore.ServiceModel -Version 1.2.3
<PackageReference Include="Cogito.AspNetCore.ServiceModel" Version="1.2.3" />
<PackageVersion Include="Cogito.AspNetCore.ServiceModel" Version="1.2.3" />
<PackageReference Include="Cogito.AspNetCore.ServiceModel" />
paket add Cogito.AspNetCore.ServiceModel --version 1.2.3
#r "nuget: Cogito.AspNetCore.ServiceModel, 1.2.3"
#:package Cogito.AspNetCore.ServiceModel@1.2.3
#addin nuget:?package=Cogito.AspNetCore.ServiceModel&version=1.2.3
#tool nuget:?package=Cogito.AspNetCore.ServiceModel&version=1.2.3
Cogito.AspNetCore.ServiceModel
Host WCF SOAP services inside an ASP.NET Core pipeline.
Why
WCF server-side hosting never came to .NET Core, so a SOAP endpoint normally keeps you on .NET
Framework and IIS. This middleware routes SOAP requests to a real ServiceHost, which means existing
contracts and behaviours keep working while the process around them is ASP.NET Core.
Install
dotnet add package Cogito.AspNetCore.ServiceModel
Use
services.AddServiceModel();
app.UseServiceHost<OrderService>("/services/orders");
The transport is an ASP.NET Core binding element, so the request arrives at the service with the
HTTP context intact — reachable from inside an operation through
OperationContext.Current.GetAspNetCoreContext().
AspNetCoreBasicBinding is the basicHttp-equivalent binding, with AspNetCoreBasicSecurityMode for
transport security; TextOrMtomEncodingBindingElement accepts either text or MTOM on the same
endpoint. AspNetCoreServiceHostOptions and AspNetCoreServiceHostConfigurator are the seams for
configuring the host that gets created.
License
MIT.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net47 is compatible. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.7
- Cogito.Core (>= 3.1.37)
- Cogito.ServiceModel.DependencyInjection (>= 0.1.13)
- Microsoft.AspNetCore.Hosting.Abstractions (>= 2.3.13)
- Microsoft.AspNetCore.Http (>= 2.3.13)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.3.13)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Logging (>= 10.0.12)
- System.Threading.Tasks.Dataflow (>= 10.0.12)
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 |
|---|---|---|
| 1.2.3 | 59 | 11/28/2026 |
| 1.2.2 | 138 | 9/14/2026 |
| 1.2.1 | 112 | 9/14/2026 |
| 1.2.0-alpha0001 | 1,359 | 1/14/2019 |
| 1.1.40 | 1,489 | 8/8/2020 |
| 1.1.39 | 1,056 | 8/7/2020 |
| 1.1.38 | 1,156 | 8/7/2020 |
| 1.1.33 | 1,212 | 7/21/2020 |
| 1.1.28 | 1,215 | 7/21/2020 |
| 1.1.27 | 1,524 | 8/26/2019 |
| 1.1.25 | 1,181 | 8/26/2019 |
| 1.1.23 | 1,360 | 8/14/2019 |
| 1.1.20 | 1,333 | 7/9/2019 |
| 1.1.19 | 2,289 | 7/9/2019 |
| 1.1.17 | 2,254 | 7/9/2019 |
| 1.1.16 | 2,244 | 7/9/2019 |
| 1.1.9 | 1,244 | 7/8/2019 |
| 1.1.7 | 1,222 | 7/7/2019 |
| 1.1.6 | 1,279 | 7/7/2019 |
| 1.1.0 | 1,453 | 10/26/2018 |