void IPlatformAppLauncher.SetLaunchOptions(string exePath, string args, string dir, object launcherXmlOptions, TargetEngine targetEngine) { if (launcherXmlOptions == null) { throw new ArgumentNullException("launcherXmlOptions"); } if (targetEngine != TargetEngine.Native) { throw new LauncherException(String.Format(CultureInfo.CurrentCulture, LauncherResources.Error_BadTargetEngine, targetEngine.ToString())); } var iosXmlOptions = (MICore.Xml.LaunchOptions.IOSLaunchOptions)launcherXmlOptions; if (_callback == null) { Debug.Fail("Why is ParseLaunchOptions called before Initialize?"); throw new InvalidOperationException(); } if (_launchOptions != null) { Debug.Fail("Why is ParseLaunchOptions being called more than once?"); throw new InvalidOperationException(); } _launchOptions = new IOSLaunchOptions(exePath, iosXmlOptions); }
public static VcRemoteClient GetInstance(IOSLaunchOptions options) { VcRemoteClient client = null; string baseAddressFormat = string.Empty; if (options.Secure) { var handler = new RequestAuthHandler(); client = new VcRemoteClient(handler); client.ServerCertificateValidationCallback = handler.ServerCertificateValidationCallback; baseAddressFormat = @"https://{0}:{1}/"; } else { client = new VcRemoteClient(); baseAddressFormat = @"http://{0}:{1}/"; } client.BaseAddress = new Uri(string.Format(CultureInfo.InvariantCulture, baseAddressFormat, options.RemoteMachineName, options.VcRemotePort)); client.Timeout = new TimeSpan(0, 0, 10); //10 second timeout client.Secure = options.Secure; client._launchOptions = options; return client; }
void IPlatformAppLauncher.SetLaunchOptions(string exePath, string args, string dir, object launcherXmlOptions) { if (launcherXmlOptions == null) { throw new ArgumentNullException("launcherXmlOptions"); } var iosXmlOptions = (MICore.Xml.LaunchOptions.IOSLaunchOptions)launcherXmlOptions; if (_callback == null) { Debug.Fail("Why is ParseLaunchOptions called before Initialize?"); throw new InvalidOperationException(); } if (_launchOptions != null) { Debug.Fail("Why is ParseLaunchOptions being called more than once?"); throw new InvalidOperationException(); } _launchOptions = new IOSLaunchOptions(exePath, iosXmlOptions); }
public static VcRemoteClient GetInstance(IOSLaunchOptions options) { VcRemoteClient client = null; string baseAddressFormat = string.Empty; if (options.Secure) { var handler = new RequestAuthHandler(); client = new VcRemoteClient(handler); client.ServerCertificateValidationCallback = handler.ServerCertificateValidationCallback; baseAddressFormat = @"https://{0}:{1}/"; } else { client = new VcRemoteClient(); baseAddressFormat = @"http://{0}:{1}/"; } client.BaseAddress = new Uri(string.Format(CultureInfo.InvariantCulture, baseAddressFormat, options.RemoteMachineName, options.VcRemotePort)); client.Timeout = new TimeSpan(0, 0, 10); //10 second timeout client.Secure = options.Secure; client._launchOptions = options; return(client); }
void IPlatformAppLauncher.SetLaunchOptions(string exePath, string args, string dir, object launcherXmlOptions, TargetEngine targetEngine) { if (launcherXmlOptions == null) throw new ArgumentNullException("launcherXmlOptions"); if (targetEngine != TargetEngine.Native) throw new LauncherException(String.Format(CultureInfo.CurrentCulture, LauncherResources.Error_BadTargetEngine, targetEngine.ToString())); var iosXmlOptions = (MICore.Xml.LaunchOptions.IOSLaunchOptions)launcherXmlOptions; if (_callback == null) { Debug.Fail("Why is ParseLaunchOptions called before Initialize?"); throw new InvalidOperationException(); } if (_launchOptions != null) { Debug.Fail("Why is ParseLaunchOptions being called more than once?"); throw new InvalidOperationException(); } _launchOptions = new IOSLaunchOptions(exePath, iosXmlOptions); }
void IPlatformAppLauncher.SetLaunchOptions(string exePath, string args, string dir, object launcherXmlOptions) { if (launcherXmlOptions == null) throw new ArgumentNullException("launcherXmlOptions"); var iosXmlOptions = (MICore.Xml.LaunchOptions.IOSLaunchOptions)launcherXmlOptions; if (_callback == null) { Debug.Fail("Why is ParseLaunchOptions called before Initialize?"); throw new InvalidOperationException(); } if (_launchOptions != null) { Debug.Fail("Why is ParseLaunchOptions being called more than once?"); throw new InvalidOperationException(); } _launchOptions = new IOSLaunchOptions(exePath, iosXmlOptions); }