Exemple #1
0
 /// <summary>
 /// Creates the new telemetry event instance with specific information.
 /// </summary>
 /// <param name="eventName">Event name that is unique, not null and not empty.</param>
 /// <param name="severity">Severity level of the event.</param>
 /// <param name="correlation">Correlation value for this event.</param>
 internal TelemetryEvent(string eventName, TelemetrySeverity severity, TelemetryEventCorrelation correlation)
 {
     CodeContract.RequiresArgumentNotNullAndNotWhiteSpace(eventName, "eventName");
     correlation.RequireNotEmpty("correlation");
     TelemetryService.EnsureEtwProviderInitialized();
     this.eventName     = eventName.ToLower(CultureInfo.InvariantCulture);
     Severity           = severity;
     Correlation        = correlation;
     EventSchemaVersion = 5;
     InitDataModelBasicProperties();
 }