+ /// Sends the launch request
+ /// </summary>
+ /// <param name="AppId"> The app ID to explicitly launch</param>
+ /// <param name="extraData">The extra data for the app control</param>
+ public void SendLaunchRequest(string AppId, IDictionary<string, string> extraData)
+ {
+ try
+ {
+ AppControl appControl = new AppControl();
+
+ if (AppId == null || AppId.Length <= 0)
+ {
+ DebuggingUtils.Err("The AppID is null or blank");
+ return;
+ }
+
+ string value;
+
+ appControl.ApplicationId = AppId;
+ foreach (var key in extraData.Keys)
+ {
+ if (extraData.TryGetValue(key, out value))
+ {
+ appControl.ExtraData.Add(key, value);
+ }
+ }
+
+ AppControl.SendLaunchRequest(appControl);
+ }
+ catch (InvalidOperationException)
+ {
+ DebuggingUtils.Err("Failed to create AppControl");
+ }
+ }
+
+ /// <summary>