Click or drag to resize
BabelReportingExtensionsReportLicenseUsage Method
A BabelReporting extension method that configure license usage reporting.

Namespace:  Babel.Licensing
Assemblies:   Babel.Licensing (in Babel.Licensing.dll) Version:
  Babel.Licensing (in Babel.Licensing.dll) Version:
public static BabelReporting ReportLicenseUsage(
	this BabelReporting self,
	Action<LicenseUsageReportOptions> configureOptions = null


Type: Babel.LicensingBabelReporting
The self to act on.
configureOptions (Optional)
Type: SystemActionLicenseUsageReportOptions
(Optional) Options for controlling the configure.

Return Value

Type: BabelReporting
The input BabelReporting object.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type BabelReporting. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
// Configure BabelReporting services
BabelReportingConfiguration config = new BabelReportingConfiguration();

config.ServiceUrl = "http://www.localhost/reports/api";
config.ApiKey = "KRpttA/l0c53dHWnTBe6vRTykyv5bhv08reSoTWGWSk=";
config.RetryCount = 3;

// Send application unhandle exception reports 
var reporting = BabelReporting.Create(config)
    .ReportLicenseUsage(options => {
        options.EncryptionKey = "";                    
        options.Formatted = true;

// Send license usage report asyncrounusly
await BabelReporting.Instance.SendLicenseUsageReportAsync();
See Also