public PackagerSettingsDialog(DevInternalSettings devInternalSettings)
        {
            this.InitializeComponent();
            this.devInternalSettings = devInternalSettings;
            string existing = devInternalSettings.DebugServerHost;

            this.host_preference.Text = existing != null?existing.Split(':')[0] : "";

            this.port_preference.Text = existing != null?existing.Split(':')[1] : "";
        }
 public DevSupportManager(
     IReactInstanceDevCommandsHandler reactInstanceCommandsHandler,
     string jsBundleFile,
     string jsAppBundleName)
 {
     _reactInstanceCommandsHandler = reactInstanceCommandsHandler;
     _jsBundleFile    = jsBundleFile;
     _jsAppBundleName = jsAppBundleName;
     _devSettings     = new DevInternalSettings(this);
     _devServerHelper = new DevServerHelper(_devSettings);
     ReloadSettings();
 }
Exemplo n.º 3
0
 public DevSupportManager(
     IReactInstanceDevCommandsHandler reactInstanceCommandsHandler,
     bool shouldLoadFromPackagerServer,
     string jsAppBundleName)
 {
     _reactInstanceCommandsHandler = reactInstanceCommandsHandler;
     _shouldLoadFromPackagerServer = shouldLoadFromPackagerServer;
     _jsAppBundleName = jsAppBundleName;
     _devSettings     = new DevInternalSettings(this);
     _devServerHelper = new DevServerHelper(_devSettings);
     ReloadSettings();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Instantiates the <see cref="DevServerHelper"/>.
 /// </summary>
 /// <param name="settings">The settings.</param>
 public DevServerHelper(DevInternalSettings settings)
 {
     _settings = settings;
     _client   = new HttpClient();
 }