Confusion about UsageCounter vs UsageReporter

.NET obfuscator and automated error reporting

Moderators: Luke Jefferson, melvyn.harbour, dom.smith

Confusion about UsageCounter vs UsageReporter

Postby williamw » Mon Jun 17, 2013 1:38 pm

The documentation examples for feature usage reporting use "UsageCounter.ReportUsage" to report feature usage.

The SDK templates define a class that inherits from UsageReporter and define static methods FeatureUsed and DynamicFeatureUsed. There is no documentation on the purpose of these methods, or on the UsageReporter.RecordFeatureUsed methods that they call.

If I am using a custom template, what should my code be calling to report feature usage? UsageCounter.ReportUsage or UsageReporterWithUI.DynamicFeatureUsed?
williamw
 
Posts: 8
Joined: Mon Apr 02, 2012 2:19 pm

Postby Chris.Allen » Tue Jun 18, 2013 3:05 pm

Sorry for the lack of documentation.

Use:

UsageCounter.ReportUsage


The other one is deprecated.
Chris.Allen
 
Posts: 594
Joined: Thu Mar 12, 2009 4:17 pm


Return to SmartAssembly 6

Who is online

Users browsing this forum: No registered users and 1 guest