/// <summary>
        /// Publishes an event with single property/value pair to the current telemetry pipeline
        /// </summary>
        /// <param name="action"></param>
        /// <param name="property"></param>
        /// <param name="value"></param>
        public static void PublishTelemetryEvent(TelemetryAction action, TelemetryProperty property, string value)
        {
            // Conversions to strings are expensive, so skip it if possible
            if (!IsEnabled)
            {
                return;
            }

            Sink.PublishTelemetryEvent(action.ToString(), property.ToString(), value);
        }
示例#2
0
 public void PublishEvent(string eventName, IReadOnlyDictionary <string, string> propertyBag)
 {
     _telemetrySink.PublishTelemetryEvent(eventName, propertyBag);
 }