Click or drag to resize

IgnoreAttributeInterfaceProxyInstanceContributor Class

Code generator that ignores type-level non-inherited attributes.
Inheritance Hierarchy
SystemObject
  ProxyInstanceContributor
    InterfaceProxyInstanceContributor
      Autofac.Multitenant.Wcf.DynamicProxyIgnoreAttributeInterfaceProxyInstanceContributor

Namespace:  Autofac.Multitenant.Wcf.DynamicProxy
Assembly:  Autofac.Multitenant.Wcf (in Autofac.Multitenant.Wcf.dll) Version: 4.0.0-CI-234
Syntax
public class IgnoreAttributeInterfaceProxyInstanceContributor : InterfaceProxyInstanceContributor

The IgnoreAttributeInterfaceProxyInstanceContributor type exposes the following members.

Constructors
  NameDescription
Public methodIgnoreAttributeInterfaceProxyInstanceContributor
Initializes a new instance of the IgnoreAttributeInterfaceProxyInstanceContributor class.
Top
Methods
  NameDescription
Protected methodAddAddValueInvocation (Inherited from ProxyInstanceContributor.)
Public methodCollectElementsToProxy (Inherited from ProxyInstanceContributor.)
Protected methodCustomizeGetObjectData (Inherited from InterfaceProxyInstanceContributor.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGenerate
Generates the class defined by the provided class emitter.
(Overrides ProxyInstanceContributor.Generate(ClassEmitter, ProxyGenerationOptions).)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetTargetReference (Inherited from InterfaceProxyInstanceContributor.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodImplementGetObjectData (Inherited from ProxyInstanceContributor.)
Protected methodImplementProxyTargetAccessor (Inherited from ProxyInstanceContributor.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected fieldtargetType (Inherited from ProxyInstanceContributor.)
Top
Remarks

The default behavior of InterfaceProxyInstanceContributor is to generate a type definition that copies over all of the non-inherited attributes from the target interface. This includes the ServiceContractAttribute that would be copied over from service interfaces. Unfortunately, WCF doesn't allow a type marked with ServiceContractAttribute to also implement an interface marked with ServiceContractAttribute. This code generator does everything that InterfaceProxyInstanceContributor does except it doesn't copy over type-level non-inherited attributes.

See Also