Click or drag to resize
BabelReporting Class
A babel report service client. This class cannot be inherited.
Inheritance Hierarchy
SystemObject
  Babel.LicensingBabelReporting

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 sealed class BabelReporting : IReportSender

The BabelReporting type exposes the following members.

Properties
  NameDescription
Public propertyConfiguration
Gets the configuration.
Public propertyStatic memberInstance
Gets the instance.
Top
Methods
  NameDescription
Public methodStatic memberCreate
Creates a new BabelReporting.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodSend
Send this message.
Public methodSendAsync
Sends the asynchronous.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventAfterSendReport
Event queue for all listeners interested in AfterSendReport events.
Public eventBeforeSendReport
Event queue for all listeners interested in BeforeSendReport events.
Top
Extension Methods
  NameDescription
Public Extension MethodCode exampleReportExceptions
A BabelReporting extension method that configure exception reporting.
(Defined by BabelReportingExtensions.)
Public Extension MethodCode exampleReportLicenseUsage
A BabelReporting extension method that configure license usage reporting.
(Defined by BabelReportingExtensions.)
Public Extension MethodSendExceptionReport
A BabelReporting extension method that reports an exception.
(Defined by BabelReportingExtensions.)
Public Extension MethodCode exampleSendExceptionReportAsync
A BabelReporting extension method that reports exception asynchronous.
(Defined by BabelReportingExtensions.)
Public Extension MethodSendLicenseUsageReport
A BabelReporting extension method that sends a license usage report.
(Defined by BabelReportingExtensions.)
Public Extension MethodSendLicenseUsageReportAsync
A BabelReporting extension method that sends a license usage report asynchronous.
(Defined by BabelReportingExtensions.)
Top
Examples
BabelReportingConfiguration config = new BabelReportingConfiguration();

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

var reporting = BabelReporting.Create(config)
    .ReportExceptions(options => {
        options.Environment.EnvironmentVariables.Add("COMPUTER*");
        options.Environment.ProcessNames.Add("SQL*");
    })
    .ReportLicenseUsage(options => {
        options.System.CollectDisplayInformation = false;
        options.System.CollectNetworkInformation = false;
        options.EncryptionKey = "secRetp@sswOrd";
        options.Formatted = true;
    });
See Also