Microsoft.Practices.Unity.InterceptionExtension Namespace
Classes
Class | Description | |
---|---|---|
AdditionalInterface |
Stores information about a single Type to be an additional interface for an intercepted object and configures a container accordingly.
|
|
AdditionalInterface<T> |
Stores information about a single Type to be an additional interface for an intercepted object and configures a container accordingly.
|
|
AdditionalInterfacesPolicy |
An IAdditionalInterfacesPolicy that accumulates a sequence of Type instances representing the additional interfaces for an intercepted object.
|
|
ApplyNoPoliciesAttribute |
Attribute used to indicate that no interception should be applied to the attribute target.
|
|
AssemblyMatchingRule |
An IMatchingRule that matches the assembly name of the given member.
|
|
AttributeDrivenPolicy |
A InjectionPolicy class that reads and constructs handlers based on HandlerAttribute on the target.
|
|
AttributeDrivenPolicyMatchingRule |
An implementation of IMatchingRule that checks to see if the member (or type containing that member) have any HandlerAttributes.
|
|
ConstructorWithResolverKeysSelectorPolicy |
A small implementation of IConstructorSelectorPolicy that returns the given SelectedConstructor object.
|
|
CurrentInterceptionRequest |
A simple data holder class used to store information about the current interception operation that's being set up. Useful for creating behaviors that need to know this stuff (especially the PIAB behavior).
|
|
CustomAttributeMatchingRule |
An implementation of IMatchingRule that checks to see if the member tested has an arbitrary attribute applied.
|
|
DefaultInterceptionBehavior |
An injection member that lets you specify behaviors that should apply to all instances of a type in the container regardless of what name it's resolved under.
|
|
DefaultInterceptionBehavior<TBehavior> |
A generic version of DefaultInterceptionBehavior so you can give the behavior type using generic syntax.
|
|
DefaultInterceptor |
A InjectionMember that can be passed to the RegisterType(Type, Type, String, LifetimeManager, array<InjectionMember[]) method to specify which interceptor to use. This member sets up the default interceptor for a type - this will be used regardless of which name is used to resolve the type.
|
|
DefaultInterceptor<TInterceptor> |
A generic version of DefaultInterceptor so that you can specify the interceptor type using generics.
|
|
FixedInstanceInterceptionPolicy |
Implementation of IInstanceInterceptionPolicy that returns a pre-created interceptor.
|
|
FixedTypeInterceptionPolicy |
Implementation of ITypeInterceptionPolicy that returns a precreated interceptor object.
|
|
Glob |
A "glob" is a string matching pattern. It is similar to the matches available in the file system (*.cs, for example). The Glob class implements this string matching.
|
|
HandlerAttribute |
Base class for handler attributes used in the attribute-driven interception policy.
|
|
HandlerPipeline |
The HandlerPipeline class encapsulates a list of ICallHandlers and manages calling them in the proper order with the right inputs.
|
|
InjectionPolicy |
Base class for Policies that specifies which handlers apply to which methods of an object.
|
|
InstanceInterceptionStrategy |
A IBuilderStrategy that intercepts objects in the build chain by creating a proxy object.
|
|
Intercept |
High-level API for performing interception on existing and new objects.
|
|
InterceptingClassGenerator |
Class that handles generating the dynamic types used for interception.
|
|
InterceptingRealProxy |
This class provides the remoting-based interception mechanism. It is invoked by a call on the corresponding TransparentProxy object. It routes calls through the handlers as appropriate.
|
|
Interception |
A Unity container extension that allows you to configure whether an object should be intercepted and which mechanism should be used to do it, and also provides a convenient set of methods for configuring injection for RuleDrivenPolicy instances.
|
|
InterceptionBehavior |
Stores information about a single IInterceptionBehavior to be used on an intercepted object and configures a container accordingly.
|
|
InterceptionBehavior<TBehavior> |
A generic version of InterceptionBehavior that lets you specify behavior types using generic syntax.
|
|
InterceptionBehaviorBase |
Base class for injection members that allow you to add interception behaviors.
|
|
InterceptionBehaviorPipeline |
The InterceptionBehaviorPipeline class encapsulates a list of IInterceptionBehaviors and manages calling them in the proper order with the right inputs.
|
|
InterceptionBehaviorsPolicy |
An IInterceptionBehaviorsPolicy that accumulates a sequence of IInterceptionBehavior instances for an intercepted object.
|
|
InterceptionMember |
Stores information about a an intercepted object and configures a container accordingly.
|
|
Interceptor |
Stores information about the IInterceptor to be used to intercept an object and configures a container accordingly.
|
|
Interceptor<TInterceptor> |
Generic version of Interceptor that lets you specify an interceptor type using generic syntax.
|
|
InterfaceInterceptor |
An instance interceptor that works by generating a proxy class on the fly for a single interface.
|
|
InterfaceInterceptorClassGenerator |
A class used to generate proxy classes for doing interception on interfaces.
|
|
InterfaceMethodOverride |
Represents the implementation of an interface method.
|
|
MatchingInfo |
Class used for storing information about a single name/ignoreCase pair. This class is also used as a base class for other classes that need this pair plus some other properties.
|
|
MatchingRuleSet |
A is a matching rule that is a collection of other matching rules. All the contained rules much match for the set to match.
|
|
MemberNameMatchingRule |
A matching rule that matches when the given member name is the same as the one supplied in the constructor.
|
|
MethodImplementationInfo |
A dumb data holder that returns the methodinfo for both an interface method and the method that implements that interface method.
|
|
MethodOverride |
Represents the implementation of a method override.
|
|
MethodSignatureMatchingRule |
Match methods with the given names and method signature.
|
|
NamespaceMatchingRule |
An IMatchingRule that matches members in a given namespace. You can specify either a single namespace (e.g. System.Data) or a namespace root (e.g. System.Data.* to match types in that namespace or below.
|
|
ParameterCollection |
An implementation of IParameterCollection that wraps a provided array containing the argument values.
|
|
ParameterTypeMatchingInfo |
A class that stores information about a single type to match.
|
|
ParameterTypeMatchingRule |
An IMatchingRule that matches methods that have any parameters of the given types.
|
|
PipelineManager |
A collection of HandlerPipeline objects, indexed by MethodBase. Returns an empty pipeline if a MethodBase is requested that isn't in the dictionary.
|
|
PolicyDefinition |
Transient class that supports convenience method for specifying interception policies.
|
|
PolicyInjectionBehavior |
Interceptor that performs policy injection.
|
|
PolicySet |
A collection of Policy objects. The policies within a PolicySet combine using an "or" operation.
|
|
PropertyMatchingInfo |
Information about a property match.
|
|
PropertyMatchingRule |
An IMatchingRule implementation that matches properties by name. You can match the getter, setter, or both.
|
|
ReflectionHelper |
A collection of utility functions to encapsulate details of reflection and finding attributes.
|
|
ResolvedInstanceInterceptionPolicy |
An implementation of IInstanceInterceptionPolicy that will resolve the interceptor through the container.
|
|
ResolvedTypeInterceptionPolicy |
An implementation of ITypeInterceptionPolicy that will resolve the interceptor through the container.
|
|
ReturnTypeMatchingRule |
An IMatchingRule that checks to see if a member has a specified type.
|
|
RuleDrivenPolicy |
A policy is a combination of a matching rule set and a set of handlers. If the policy applies to a member, then the handlers will be enabled for that member.
|
|
TagAttribute |
A simple attribute used to "tag" classes, methods, or properties with a string that can later be matched via the TagAttributeMatchingRule.
|
|
TagAttributeMatchingRule |
A IMatchingRule that checks a member for the presence of the TagAttribute on the method, property, or class, and that the given string matches.
|
|
TransparentProxyInterceptor |
An instance interceptor that uses remoting proxies to do the interception.
|
|
TransparentProxyMethodInvocation |
An implementation of IMethodInvocation that wraps the remoting-based IMethodCallMessage in the PIAB call interface.
|
|
TypeInterceptionStrategy |
A IBuilderStrategy that hooks up type interception. It looks for a ITypeInterceptionPolicy for the current build key, or the current build type. If present, it substitutes types so that that proxy class gets built up instead. On the way back, it hooks up the appropriate handlers.
|
|
TypeMatchingRule |
A matching rule that matches when the member is declared in the given type.
|
|
VirtualMethodInterceptor |
A type based interceptor that works by generated a new class on the fly that derives from the target class.
|
|
VirtualMethodInvocation |
Implementation of IMethodInvocation used by the virtual method interceptor.
|
|
VirtualMethodReturn |
An implementation of IMethodReturn used by the virtual method interception mechanism.
|
Structures
Structure | Description | |
---|---|---|
HandlerPipelineKey |
Key for handler pipelines.
|
Interfaces
Interface | Description | |
---|---|---|
IAdditionalInterfacesPolicy |
An IBuilderPolicy that returns a sequence of Type instances representing the additional interfaces for an intercepted object.
|
|
ICallHandler |
Handlers implement this interface and are called for each invocation of the pipelines that they're included in.
|
|
IInstanceInterceptionPolicy |
An interface that determines when to intercept instances and which interceptor to use.
|
|
IInstanceInterceptor |
Interface for interceptors that generate separate proxy objects to implement interception on instances.
|
|
IInterceptingProxy |
This interface is implemented by all proxy objects, type or instance based. It allows for adding interception behaviors.
|
|
IInterceptionBehavior |
Interception behaviors implement this interface and are called for each invocation of the pipelines that they're included in.
|
|
IInterceptionBehaviorsPolicy |
An IBuilderPolicy that returns a sequence of IInterceptionBehavior instances for an intercepted object.
|
|
IInterceptor |
Base interface for type and instance based interceptor classes.
|
|
IMatchingRule |
This interface is implemented by the matching rule classes. A Matching rule is used to see if a particular policy should be applied to a class member.
|
|
IMethodInvocation |
This interface is used to represent the call to a method. An implementation of IMethodInvocation is passed to the call handlers so that they may manipulate the call (typically by changing the parameters) before the final target gets called.
|
|
IMethodReturn |
This interface is used to represent the return value from a method. An implementation of IMethodReturn is returned by call handlers, and each handler can manipulate the parameters, return value, or add an exception on the way out.
|
|
IParameterCollection |
This interface represents a list of either input or output parameters. It implements a fixed size list, plus a couple of other utility methods.
|
|
ITypeInterceptionPolicy |
Interface that controls when and how types get intercepted.
|
|
ITypeInterceptor |
Interface for interceptor objects that generate proxy types.
|
Delegates
Delegate | Description | |
---|---|---|
GetNextHandlerDelegate |
This delegate type is passed to each handler's Invoke method. Call the delegate to get the next delegate to call to continue the chain.
|
|
GetNextInterceptionBehaviorDelegate |
This delegate type is passed to each interceptor's Invoke method. Call the delegate to get the next delegate to call to continue the chain.
|
|
InvokeHandlerDelegate |
This delegate type is the type that points to the next method to execute in the current pipeline.
|
|
InvokeInterceptionBehaviorDelegate |
This delegate type is the type that points to the next method to execute in the current pipeline.
|
Enumerations
Enumeration | Description | |
---|---|---|
ParameterKind |
Describes the type of parameter to match.
|
|
PropertyMatchingOption |
Specifies which methods of a property should be matches by the PropertyMatchingRule.
|