/// <summary> /// Queues a telemetry event with command line flags information to be posted to the server. /// Only command line flags (identified by the given prefixes) will be included. /// </summary> /// <param name="session">A <see cref="T:Coding4Fun.VisualStudio.Telemetry.TelemetrySession" /> to post the event with.</param> /// <param name="flagPrefixes">The prefix(s) to identify a program's flag.</param> /// <exception cref="T:System.ArgumentNullException">If session is null.</exception> /// <exception cref="T:System.ArgumentException">If eventName is null, empty or white space.</exception> /// <exception cref="T:System.ArgumentException"> /// If no prefixes are specified, or all prefixes are null, empty or white space. /// </exception> public static void PostCommandLineFlags(this TelemetrySession session, params string[] flagPrefixes) { session.PostCommandLineFlags(flagPrefixes, null); }