Autofac.Integration.Wcf
Sets the instance provider to an AutofacInstanceProvider.
Initializes a new instance of the class.
The container from which service implementations should be resolved.
Data about which service type should be hosted and how to resolve
the type to use for the service implementation.
Thrown if or is .
Provides the ability to inspect the service host and the service description to confirm that the service can run successfully.
The service description.
The service host that is currently being constructed.
Provides the ability to pass custom data to binding elements to support the contract implementation.
The service description of the service.
The host of the service.
The service endpoints.
Custom objects to which binding elements have access.
Provides the ability to change run-time property values or insert custom extension objects such as error handlers, message or parameter interceptors, security extensions, and other custom extension objects.
The service description.
The host that is currently being built.
Thrown if or
is .
Manages instance lifecycle using an Autofac inner container.
This instance context extension creates a child lifetime scope based
on a scope provided and resolves service instances from that child scope.
When this instance context is disposed, the lifetime scope it creates
(which contains the resolved service instance) is also disposed.
Initializes a new instance of the class.
The outer container/lifetime scope from which the instance scope
will be created.
Finalizes an instance of the class.
Enables an extension object to find out when it has been aggregated.
Called when the extension is added to the
property.
The extensible object that aggregates this extension.
Enables an object to find out when it is no longer aggregated.
Called when an extension is removed from the
property.
The extensible object that aggregates this extension.
Performs application-defined tasks associated with freeing, releasing, or
resetting unmanaged resources.
Handles disposal of managed and unmanaged resources.
to dispose of managed resources (during a manual execution
of ); or
if this is getting run as part of finalization where
managed resources may have already been cleaned up.
Resolve an instance of the provided registration within the context.
The registration.
Parameters for the instance.
The component instance.
Retrieve a service instance from the context.
Data object containing information about how to resolve the service
implementation instance.
The service instance.
Thrown if is .
Gets the current
for the operation.
The associated
with the current if
one exists; or if there isn't one.
In a singleton service, there won't be a current
because singleton services are resolved at the time the service host begins
rather than on each operation.
Gets the request/operation lifetime.
An that this instance
context will use to resolve service instances.
Associates services with the components that provide them.
Retrieves service instances from an Autofac container.
Initializes a new instance of the class.
The lifetime scope from which service instances should be resolved.
Data object containing information about how to resolve the service
implementation instance.
Thrown if or is .
Returns a service object given the specified object.
The current object.
A user-defined service object.
Returns a service object given the specified object.
The current object.
The message that triggered the creation of a service object.
The service object.
Thrown if is .
Called when an object recycles a service object.
The service's instance context.
The service object to be recycled.
Thrown if is .
Creates instances for WCF.
Creates service host instances for WCF.
The Autofac service host factory allows you to change
the strategy by which service implementations are resolved. You do this by
setting the
with a strategy implementation.
If
is a new instance of
will be used.
You may configure additional behaviors or other aspects of generated
service instances by setting the .
If this value is not , generated host instances
will be run through that action.
Creates a with specific base addresses and initializes it with specified data.
The initialization data passed to the instance being constructed by the factory.
The of type that contains the base addresses for the service hosted.
A with specific base addresses.
Thrown if or is .
Thrown if is empty.
Thrown if the
is .
If
is not , the new service host instance is run
through the configuration action prior to being returned. This allows
you to programmatically configure behaviors or other aspects of the
host.
Creates a for a specified type of service with a specific base address.
Specifies the singleton service instance to host.
The of type that contains the base addresses for the service hosted.
A for the singleton service instance specified with a specific base address.
Gets or sets the container or lifetime scope from which service instances will be retrieved.
An that will be used to resolve service
implementation instances.
Gets or sets an action that can be used to programmatically configure
service host instances this factory generates.
An that can be used to configure service host
instances that this factory creates. This action can be used to add
behaviors or otherwise modify the host before it gets returned by
the factory.
Gets or sets the service implementation data strategy.
An
that will be used to determine the proper service implementation given
a service constructor string.
Creates a for a specified type of service with a specific base address.
Specifies the type of service to host.
The of type that contains the base addresses for the service hosted.
A for the type of service specified with a specific base address.
Thrown if or is .
Creates a for a specified type of service with a specific base address.
Specifies the singleton service instance to host.
The of type that contains the base addresses for the service hosted.
A for the singleton service instance specified with a specific base address.
A strongly-typed resource class, for looking up localized strings, etc.
Returns the cached ResourceManager instance used by this class.
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
Looks up a localized string similar to The AutofacServiceHost.Container static property must be set before services can be instantiated..
Looks up a localized string similar to Service '{0}' is registered in such a way that its implementation type could not be derived. This is required for WCF integration. Consider using a reflection-based registration or an expression-based registration where the return value is a class type. The current default registration is '{1}'..
Looks up a localized string similar to No type to host was provided by the '{0}' for the service '{1}'..
Looks up a localized string similar to The WCF service '{0}' has an InstanceContextMode of Single and is not registered as SingleInstance with the Autofac container..
Looks up a localized string similar to The WCF service '{0}' does not have an InstanceContextMode of Single and is registered as SingleInstance with the Autofac container..
Looks up a localized string similar to The service '{0}' configured for WCF is not registered with the Autofac container..
Creates ServiceHost instances for WCF.
Creates a for a specified type of service with a specific base address.
Specifies the type of service to host.
The of type that contains the base addresses for the service hosted.
A for the type of service specified with a specific base address.
Thrown if or is .
Creates a for a specified type of service with a specific base address.
Specifies the singleton service instance to host.
The of type that contains the base addresses for the service hosted.
A for the singleton service instance specified with a specific base address.
Simple resolver for WCF service implementations. Allows for single-tenant
handling of named or typed services.
Defines a strategy for resolving which service type should be
used for hosting vs. which type is the actual service implementation.
Gets data about a service implementation.
The constructor string passed in to the service host factory
that is used to determine which type to host/use as a service
implementation.
A
object containing information about which type to use in
the service host and how to resolve the implementation.
Gets data about a service implementation.
The constructor string passed in to the service host factory
that is used to determine which type to host/use as a service
implementation.
A
object containing information about which type to use in
the service host and which type to use to resolve the implementation.
This resolver takes the constructor string stored in the .svc file
and resolves a matching keyed or typed service from the root
application container. That resolved type is used both for the
service host as well as the implementation type.
Thrown if the
is ;
if the service indicated by
is not registered with the ;
or if the service is a singleton that isn't registered as a singleton.
Thrown if is .
Thrown if is empty.
A strongly-typed resource class, for looking up localized strings, etc.
Returns the cached ResourceManager instance used by this class.
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
Looks up a localized string similar to '{0}' may not be empty..
Extend the registration syntax with WCF-specific helpers.
Dispose the channel instance in such a way that exceptions
Registration limit type.
Activator data type.
Registration style.
Registration to set release action for.
Registration builder allowing the registration to be configured.
This will eat exceptions generated in the closing of the channel.
Adds dependency injection related methods to service hosts.
Adds the custom service behavior required for dependency injection.
The web service contract type.
The service host.
The container.
Adds the custom service behavior required for dependency injection.
The service host.
The web service contract type.
The container.
A strongly-typed resource class, for looking up localized strings, etc.
Returns the cached ResourceManager instance used by this class.
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
Looks up a localized string similar to The service contract type '{0}' has not been registered in the container..
Contains data about a WCF service implementation.
This data transfer object class is used in conjunction with
implementations for resolving service implementation instance information.
Gets or sets the string used to generate the data.
A used to generate this service
implementation data.
Gets or sets an indicator of whether the service should be hosted as a singleton.
if this service should be a singleton; if not.
Gets or sets the concrete type to host.
A that indicates the type to pass to the
service host when it is initially created. This type must be a concrete
class and not an interface.
Gets or sets a mechanism that allows the
to get the actual implementation for a service.
An that takes in a lifetime scope returns
an that is the implementation type for the
given service. This is the object that the service host will use
and should be assignable from the .