Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/11/10 18:23:52 (14 years ago)
Author:
gkronber
Message:

Implemented deployment service on servdev.heuristiclab.com and changed all service references and configurations to point to the service address. Improved GUI of installation manager. Implemented user name authentication and authorization for the deployment service. #860 (Deployment server for plugin installation from web locations)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DeploymentServer Prototype/HeuristicLab.Services/HeuristicLab.DeploymentService.AdminClient/PluginListView.cs

    r2860 r3006  
    2727      Caption = "Plugins";
    2828
    29       using (var client = new PluginDeploymentService.UpdateClient()) {
    30         serverUrlTextBox.Text = client.Endpoint.Address.ToString();
    31       }
    32 
    3329      localAndServerPlugins = new Dictionary<IPluginDescription, PluginDeploymentService.PluginDescription>();
    3430
     
    7975    void updateServerPluginsWorker_DoWork(object sender, DoWorkEventArgs e) {
    8076      try {
    81         using (var client = new PluginDeploymentService.UpdateClient()) {
    82           e.Result = client.GetPlugins();
    83           e.Cancel = false;
    84         }
     77        var client = PluginDeploymentService.UpdateClientFactory.CreateClient();
     78        e.Result = client.GetPlugins();
     79        e.Cancel = false;
    8580      }
    8681      catch (EndpointNotFoundException) {
     
    110105      try {
    111106        var selectedPlugins = (IEnumerable<IPluginDescription>)e.Argument;
    112         using (PluginDeploymentService.AdminClient adminClient = new PluginDeploymentService.AdminClient()) {
    113 
    114           foreach (var plugin in IteratePlugins(selectedPlugins)) {
    115             adminClient.DeployPlugin(MakePluginDescription(plugin), CreateZipPackage(plugin));
    116           }
     107        PluginDeploymentService.AdminClient adminClient = PluginDeploymentService.AdminClientFactory.CreateClient();
     108
     109        foreach (var plugin in IteratePlugins(selectedPlugins)) {
     110         adminClient.DeployPlugin(MakePluginDescription(plugin), CreateZipPackage(plugin));
    117111        }
    118112        e.Cancel = false;
     
    142136
    143137    private void connectButton_Click(object sender, EventArgs e) {
    144       if (connectButton.Text == "Connect") {
    145         DisableControl();
    146         RefreshPluginsAsync();
    147       } else {
    148         UpdateControlsDisconnectedState();
    149       }
     138      var connectionSetupView = new ConnectionSetupView();
     139      connectionSetupView.Show();
    150140    }
    151141
     
    226216      var dependencies = from dep in plugin.Dependencies
    227217                         select MakePluginDescription(dep);
    228       if (string.IsNullOrEmpty(plugin.ContactName) || string.IsNullOrEmpty(plugin.ContactEmail)) {
    229         return new PluginDeploymentService.PluginDescription(plugin.Name, plugin.Version, dependencies);
    230       } else return new PluginDeploymentService.PluginDescription(plugin.Name, plugin.Version, dependencies, plugin.ContactName, plugin.ContactEmail, plugin.LicenseText);
     218      return new PluginDeploymentService.PluginDescription(plugin.Name, plugin.Version, dependencies, plugin.ContactName, plugin.ContactEmail, plugin.LicenseText);
    231219    }
    232220
     
    256244
    257245    private void UpdateControlsDisconnectedState() {
    258       connectButton.Text = "Connect";
    259       serverUrlTextBox.Enabled = true;
    260       serverUrlLabel.Enabled = true;
     246      connectionSetupButton.Text = "Connect";
    261247      refreshButton.Enabled = false;
    262248
     
    269255
    270256    private void UpdateControlsConnectedState() {
    271       connectButton.Text = "Disconnect";
    272       connectButton.Enabled = true;
    273       serverUrlTextBox.Enabled = false;
    274       serverUrlLabel.Enabled = false;
     257      connectionSetupButton.Text = "Disconnect";
     258      connectionSetupButton.Enabled = true;
    275259      refreshButton.Enabled = true;
    276260      listView.Enabled = true;
Note: See TracChangeset for help on using the changeset viewer.