How corewcf/corewcf works
CoreWCF ports the service side of WCF to .NET Core, letting existing WCF services move to the platform. The principal workflow is configuring a service and its endpoints, accepting a request over a selected transport, decoding and dispatching it to service operations, and returning a response. The repository also includes security, Web HTTP, and message-broker transports. The graph combines documented product scope with the sampled configuration and framing code; dashed edges mark runtime connections not directly shown in the excerpts.
Main entry points: ServiceDispatcher.cs Service dispatcher · IServiceBuilder.cs Service builder · ConfigurationManagerServiceModelOptions.cs XML configuration · Binding.cs Bindings and elements
Components 16
Service setup
- XML configuration
src/CoreWCF.ConfigurationManager/src/CoreWCF/Configuration/ConfigurationManagerServiceModelOptions.cs - Service builder
src/CoreWCF.Primitives/src/CoreWCF/Configuration/IServiceBuilder.cs - Bindings and elements
src/CoreWCF.Primitives/src/CoreWCF/Channels/Binding.cs
Service runtime
- Service dispatcher
src/CoreWCF.Primitives/src/CoreWCF/Dispatcher/ServiceDispatcher.cs - Framing handler
src/CoreWCF.NetFramingBase/src/CoreWCF/Channels/Framing/NetMessageFramingConnectionHandler.cs - Diagnostics
src/Common/src/CoreWCF/DiagnosticUtility.cs
Transports
- HTTP transport
src/CoreWCF.Http/src/CoreWCF/Channels/HttpTransportServiceBuilder.cs - Web HTTP
src/CoreWCF.WebHttp/src/CoreWCF/Dispatcher/QueryStringConverter.cs - NetTcp hosting
src/CoreWCF.NetTcp/src/CoreWCF/Configuration/ServiceModelWebHostBuilderExtensions.cs - Named pipes
src/CoreWCF.NetNamedPipe/src/CoreWCF/Channels/NamedPipeTransportManager.cs - Kafka transport
src/CoreWCF.Kafka/src/CoreWCF/Channels/KafkaTransportPump.cs - RabbitMQ transport
src/CoreWCF.RabbitMQ.Client/src/CoreWCF/ServiceModel/Channels/RabbitMqOutputChannel.cs - MSMQ support
src/CoreWCF.MSMQ/src/CoreWCF/Channels/MsmqReceiveContext.cs
Security and protocols
- Message security
src/CoreWCF.Primitives/src/CoreWCF/Security/LaxModeSecurityHeaderElementInferenceEngine.cs - Session tokens
src/CoreWCF.Primitives/src/CoreWCF/IdentityModel/Tokens/SessionSecurityTokenHandler.cs
Other components
- Service developer
Connections 16
- Service developer → Service builder: configures service
README.md - XML configuration → Service builder: configures endpoints
src/CoreWCF.ConfigurationManager/src/CoreWCF/Configuration/ConfigurationManagerServiceModelOptions.cs - XML configuration → Bindings and elements: creates bindings
src/CoreWCF.ConfigurationManager/src/CoreWCF/Configuration/ConfigurationManagerServiceModelOptions.cs - Service builder → Service dispatcher: registers services
- Bindings and elements → Service dispatcher: builds channels
- HTTP transport → Service dispatcher: dispatches requests
- Web HTTP → Service dispatcher: converts query values
- NetTcp hosting → Framing handler: sets up framing
src/CoreWCF.NetTcp/src/CoreWCF/Configuration/ServiceModelWebHostBuilderExtensions.cs - Framing handler → Service dispatcher: builds dispatcher
src/CoreWCF.NetFramingBase/src/CoreWCF/Channels/Framing/NetMessageFramingConnectionHandler.cs - Named pipes → Service dispatcher: serves requests
- Kafka transport → Service dispatcher: delivers messages
- RabbitMQ transport → Service dispatcher: transports messages
- MSMQ support → Service dispatcher: receives messages
- Service dispatcher → Message security: checks message security
- Message security → Session tokens: uses session tokens
- Service dispatcher → Diagnostics: reports errors