Click or drag to resize

InterceptorOptionsAttributeAlwaysCreateNewInstance Property

Gets or sets a value that indicates if a new instance of the interceptor attribute is created every method or property call or not.

If false the interceptor instance will be reused for every call, those maintaining its instance; otherwise a new instance is created.

This option is available for IPropertyGetterInterceptor, IPropertySetterInterceptor, IPropertyInterceptor, IMethodInterceptor and ISimpleMethodInterceptor. This has no effect if the interceptor is implementing the IPropertyInterceptorInitialize interface.

The default value is false.

Namespace:  Cauldron.Interception
Assembly:  Cauldron.Interception (in Cauldron.Interception.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public bool AlwaysCreateNewInstance { get; set; }

Property Value

Type: Boolean

[Missing <value> documentation for "P:Cauldron.Interception.InterceptorOptionsAttribute.AlwaysCreateNewInstance"]

See Also