Microsoft.Practices.Unity.InterceptionExtension Namespace
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The latest Unity Application Block information can be found at the Unity Application Block site. |
Classes
Class | Description | |
---|---|---|
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.
|
|
CustomAttributeMatchingRule |
An implementation of IMatchingRule that checks to see if the member tested has an arbitrary attribute applied.
|
|
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.
|
|
InstanceInterceptionPolicy |
Implementation if IInstanceInterceptionPolicy
|
|
InstanceInterceptionStrategy |
A IBuilderStrategy that intercepts objects in the build chain by creating a proxy object.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 Policy Injection Application Block call interface.
|
|
TypeInterceptionPolicy |
Implementation of ITypeInterceptionPolicy.
|
|
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.
|
Interfaces
Interface | Description | |
---|---|---|
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 gives access to the handler pipelines for each method so that they can be set.
|
|
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.
|
|
InvokeHandlerDelegate |
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.
|