private static void OnNextEvent(BBEvent bbEvent) { try { InsightsClient.TrackEvent((EventTelemetry)bbEvent.ToTelemetry()); } catch (Exception ex) { InsightsClient.TrackException( (ExceptionTelemetry) new BBInternalEvent("Error senting the telemetry event through AppInsights", ex).ToTelemetry()); } }
public static void Publish(BBEvent bbEvent) { // GUARDS Events.OnNext(bbEvent); }