Dotfuscator User's Guide


The TeardownAttribute is an instrumentation time attribute for methods. This attribute can be used to guide Application Analytics instrumentation.

When used for Application Analytics, Dotfuscator will insert PreEmptive Analytics cleanup code into any method with this attribute. There must be one or more methods with this attribute in an assembly or application that uses PreEmptive Analytics instrumentation. At runtime, the cleanup code will send a PreEmptive Analytics application and session stop messages when this method is called.

Dotfuscator will remove this custom attribute from the metadata after instrumentation.

Copy Code
public sealed class TeardownAttribute : Attribute

Constructor Members

Name Summary
TeardownAttribute() Initializes a new instance of the class.

Property Members

Name Summary

ExtendedKeyMethodArguements : String

A pattern indicating which parameter names and values should be automatically added to the messages extended key data at runtime.  See Automatically Sending Method Parameters as Extended Keys for details on supported patterns.

ExtendedKeySourceElement : SourceElements Indicates how to access the extended key dictionary at runtime, at the time that the attributed method is called (e.g. a field, property, method, or method parameter). To use this property, ExtendedKeySourceName must also be set. If ExtendedKeySourceElement is a field, method, or property, ExtendedKeySourceOwner must also be set unless the field, method or property is defined on the same class as the attributed method.
ExtendedKeySourceName : String The name of the property, field, method, or method parameter that will contain the extended key dictionary at runtime, at the time that the attributed method is called. If this property is set, ExtendedKeySourceElement is required to be set as well. If this property is not set, Dotfuscator will not generate code to send extended key information.
ExtendedKeySourceOwner : Type If the ExtendedKeySourceElement is a field, method or property, ExtendedKeySourceOwner indicates the name of the type that defines the field, method or property. If not set, the named source element is searched for on the attributed method’s type.
See Also




© 2017 PreEmptive Solutions, LLC. All Rights Reserved.