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: 2.5.0.0
  Babel.Licensing (in Babel.Licensing.dll) Version: 2.5.0.0
Syntax
public static Task<bool> SendExceptionReportAsync(
	this BabelReporting self,
	Exception e
)

Parameters

self
Type: Babel.LicensingBabelReporting
The self to act on.
e
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).
Examples
// 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 = "secret1234@babelfor.net";                    
        options.Formatted = true;
    });

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