SimpleInjector.Integration.Wcf Namespace

Simple Injector
The SimpleInjector.Integration.Wcf namespace is part of the SimpleInjector.Integration.Wcf.dll and contains functionality for integrating Simple Injector with WCF services. Core type is the WcfOperationLifestyle class that allows caching registered services during the execution of a single WCF operation.
Classes

  ClassDescription
Public classSimpleInjectorServiceBehavior
IServiceBehavior implementation for Simple Injector.
Public classSimpleInjectorServiceHost
This service host is used to set up the service behavior that replaces the instance provider to use dependency injection.
Public classSimpleInjectorServiceHostFactory
Factory that provides instances of SimpleInjectorServiceHost in managed hosting environments where the host instance is created dynamically in response to incoming messages.
Public classCode exampleWcfOperationLifestyle
Defines a lifestyle that caches instances for the lifetime of a WCF service class. WCF allows service classes to be (both implicitly and explicitly) configured to have a lifetime of PerCall, PerSession or Single using the InstanceContextMode enumeration. The lifetime of WCF service classes is controlled by WCF and this lifestyle allows registrations to be scoped according to the containing WCF service class.