Click or drag to resize
BabelReportingExtensionsSendExceptionReportAsync Method
A BabelReporting extension method that reports exception asynchronous.

Namespace:  Babel.Licensing
Assemblies:   Babel.Licensing (in Babel.Licensing.dll) Version:
  Babel.Licensing (in Babel.Licensing.dll) Version:
public static Task<bool> SendExceptionReportAsync(
	this BabelReporting self,
	Exception e


Type: Babel.LicensingBabelReporting
The self to act on.
Type: SystemException
An Exception to process.

Return Value

Type: TaskBoolean
An asynchronous result that yields the report exception.

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