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

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 Compatible and additional computed target framework versions.
.NET Framework net47 is compatible.  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
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
Loading failed