Partager via


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
Ee650689.pubclass(en-us,PandP.10).gif ApplyNoPoliciesAttribute
Attribute used to indicate that no interception should be applied to the attribute target.
Ee650689.pubclass(en-us,PandP.10).gif AssemblyMatchingRule
An IMatchingRule that matches the assembly name of the given member.
Ee650689.pubclass(en-us,PandP.10).gif AttributeDrivenPolicy
A InjectionPolicy class that reads and constructs handlers based on HandlerAttribute on the target.
Ee650689.pubclass(en-us,PandP.10).gif AttributeDrivenPolicyMatchingRule
An implementation of IMatchingRule that checks to see if the member (or type containing that member) have any HandlerAttributes.
Ee650689.pubclass(en-us,PandP.10).gif ConstructorWithResolverKeysSelectorPolicy
A small implementation of IConstructorSelectorPolicy that returns the given SelectedConstructor object.
Ee650689.pubclass(en-us,PandP.10).gif CustomAttributeMatchingRule
An implementation of IMatchingRule that checks to see if the member tested has an arbitrary attribute applied.
Ee650689.pubclass(en-us,PandP.10).gif 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.
Ee650689.pubclass(en-us,PandP.10).gif HandlerAttribute
Base class for handler attributes used in the attribute-driven interception policy.
Ee650689.pubclass(en-us,PandP.10).gif HandlerPipeline
The HandlerPipeline class encapsulates a list of ICallHandlers and manages calling them in the proper order with the right inputs.
Ee650689.pubclass(en-us,PandP.10).gif InjectionPolicy
Base class for Policies that specifies which handlers apply to which methods of an object.
Ee650689.pubclass(en-us,PandP.10).gif InstanceInterceptionPolicy
Implementation if IInstanceInterceptionPolicy
Ee650689.pubclass(en-us,PandP.10).gif InstanceInterceptionStrategy
A IBuilderStrategy that intercepts objects in the build chain by creating a proxy object.
Ee650689.pubclass(en-us,PandP.10).gif InterceptingClassGenerator
Class that handles generating the dynamic types used for interception.
Ee650689.pubclass(en-us,PandP.10).gif 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.
Ee650689.pubclass(en-us,PandP.10).gif 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.
Ee650689.pubclass(en-us,PandP.10).gif InterfaceInterceptor
An instance interceptor that works by generating a proxy class on the fly for a single interface.
Ee650689.pubclass(en-us,PandP.10).gif InterfaceInterceptorClassGenerator
A class used to generate proxy classes for doing interception on interfaces.
Ee650689.pubclass(en-us,PandP.10).gif 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.
Ee650689.pubclass(en-us,PandP.10).gif 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.
Ee650689.pubclass(en-us,PandP.10).gif MemberNameMatchingRule
A matching rule that matches when the given member name is the same as the one supplied in the constructor.
Ee650689.pubclass(en-us,PandP.10).gif MethodImplementationInfo
A dumb data holder that returns the methodinfo for both an interface method and the method that implements that interface method.
Ee650689.pubclass(en-us,PandP.10).gif MethodSignatureMatchingRule
Match methods with the given names and method signature.
Ee650689.pubclass(en-us,PandP.10).gif 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.
Ee650689.pubclass(en-us,PandP.10).gif ParameterCollection
An implementation of IParameterCollection that wraps a provided array containing the argument values.
Ee650689.pubclass(en-us,PandP.10).gif ParameterTypeMatchingInfo
A class that stores information about a single type to match.
Ee650689.pubclass(en-us,PandP.10).gif ParameterTypeMatchingRule
An IMatchingRule that matches methods that have any parameters of the given types.
Ee650689.pubclass(en-us,PandP.10).gif PipelineManager
A collection of HandlerPipeline objects, indexed by MethodBase. Returns an empty pipeline if a MethodBase is requested that isn't in the dictionary.
Ee650689.pubclass(en-us,PandP.10).gif PolicyDefinition
Transient class that supports convenience method for specifying interception policies.
Ee650689.pubclass(en-us,PandP.10).gif PolicySet
A collection of Policy objects. The policies within a PolicySet combine using an "or" operation.
Ee650689.pubclass(en-us,PandP.10).gif PropertyMatchingInfo
Information about a property match.
Ee650689.pubclass(en-us,PandP.10).gif PropertyMatchingRule
An IMatchingRule implementation that matches properties by name. You can match the getter, setter, or both.
Ee650689.pubclass(en-us,PandP.10).gif ReflectionHelper
A collection of utility functions to encapsulate details of reflection and finding attributes.
Ee650689.pubclass(en-us,PandP.10).gif ReturnTypeMatchingRule
An IMatchingRule that checks to see if a member has a specified type.
Ee650689.pubclass(en-us,PandP.10).gif 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.
Ee650689.pubclass(en-us,PandP.10).gif TagAttribute
A simple attribute used to "tag" classes, methods, or properties with a string that can later be matched via the TagAttributeMatchingRule.
Ee650689.pubclass(en-us,PandP.10).gif 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.
Ee650689.pubclass(en-us,PandP.10).gif TransparentProxyInterceptor
An instance interceptor that uses remoting proxies to do the interception.
Ee650689.pubclass(en-us,PandP.10).gif TransparentProxyMethodInvocation
An implementation of IMethodInvocation that wraps the remoting-based IMethodCallMessage in the Policy Injection Application Block call interface.
Ee650689.pubclass(en-us,PandP.10).gif TypeInterceptionPolicy
Implementation of ITypeInterceptionPolicy.
Ee650689.pubclass(en-us,PandP.10).gif 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.
Ee650689.pubclass(en-us,PandP.10).gif TypeMatchingRule
A matching rule that matches when the member is declared in the given type.
Ee650689.pubclass(en-us,PandP.10).gif VirtualMethodInterceptor
A type based interceptor that works by generated a new class on the fly that derives from the target class.
Ee650689.pubclass(en-us,PandP.10).gif VirtualMethodInvocation
Implementation of IMethodInvocation used by the virtual method interceptor.
Ee650689.pubclass(en-us,PandP.10).gif VirtualMethodReturn
An implementation of IMethodReturn used by the virtual method interception mechanism.

Interfaces

  Interface Description
Ee650689.pubinterface(en-us,PandP.10).gif ICallHandler
Handlers implement this interface and are called for each invocation of the pipelines that they're included in.
Ee650689.pubinterface(en-us,PandP.10).gif IInstanceInterceptionPolicy
An interface that determines when to intercept instances and which interceptor to use.
Ee650689.pubinterface(en-us,PandP.10).gif IInstanceInterceptor
Interface for interceptors that generate separate proxy objects to implement interception on instances.
Ee650689.pubinterface(en-us,PandP.10).gif 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.
Ee650689.pubinterface(en-us,PandP.10).gif IInterceptor
Base interface for type and instance based interceptor classes.
Ee650689.pubinterface(en-us,PandP.10).gif 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.
Ee650689.pubinterface(en-us,PandP.10).gif 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.
Ee650689.pubinterface(en-us,PandP.10).gif 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.
Ee650689.pubinterface(en-us,PandP.10).gif 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.
Ee650689.pubinterface(en-us,PandP.10).gif ITypeInterceptionPolicy
Interface that controls when and how types get intercepted.
Ee650689.pubinterface(en-us,PandP.10).gif ITypeInterceptor
Interface for interceptor objects that generate proxy types.

Delegates

  Delegate Description
Ee650689.pubdelegate(en-us,PandP.10).gif 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.
Ee650689.pubdelegate(en-us,PandP.10).gif InvokeHandlerDelegate
This delegate type is the type that points to the next method to execute in the current pipeline.

Enumerations

  Enumeration Description
Ee650689.pubenumeration(en-us,PandP.10).gif ParameterKind
Describes the type of parameter to match.
Ee650689.pubenumeration(en-us,PandP.10).gif PropertyMatchingOption
Specifies which methods of a property should be matches by the PropertyMatchingRule.