Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1087


Ignore:
Timestamp:
01/07/09 16:52:16 (15 years ago)
Author:
whackl
Message:

added shutdown button (#455)

Location:
trunk/sources/HeuristicLab.Hive.Client.Console
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.Designer.cs

    r1010 r1087  
    5555      this.chProgress = new System.Windows.Forms.ColumnHeader();
    5656      this.gbCommon = new System.Windows.Forms.GroupBox();
     57      this.pbGraph = new System.Windows.Forms.PictureBox();
    5758      this.lbJobsAborted = new System.Windows.Forms.Label();
    5859      this.lbJobdone = new System.Windows.Forms.Label();
     
    8687      this.lbServerIPCaption = new System.Windows.Forms.Label();
    8788      this.lbPortCaption = new System.Windows.Forms.Label();
    88       this.pbGraph = new System.Windows.Forms.PictureBox();
     89      this.btn_clientShutdown = new System.Windows.Forms.Button();
    8990      this.tcClientConsole.SuspendLayout();
    9091      this.tpConnection.SuspendLayout();
    9192      this.gbJobCommon.SuspendLayout();
    9293      this.gbCommon.SuspendLayout();
     94      ((System.ComponentModel.ISupportInitialize)(this.pbGraph)).BeginInit();
    9395      this.gbEventLog.SuspendLayout();
    9496      this.tabPage2.SuspendLayout();
    9597      this.gbOnlineTime.SuspendLayout();
    9698      this.gbServerConnection.SuspendLayout();
    97       ((System.ComponentModel.ISupportInitialize)(this.pbGraph)).BeginInit();
    9899      this.SuspendLayout();
    99100      //
     
    184185      this.gbCommon.Text = "Common";
    185186      //
     187      // pbGraph
     188      //
     189      this.pbGraph.Location = new System.Drawing.Point(292, 19);
     190      this.pbGraph.Name = "pbGraph";
     191      this.pbGraph.Size = new System.Drawing.Size(112, 108);
     192      this.pbGraph.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     193      this.pbGraph.TabIndex = 21;
     194      this.pbGraph.TabStop = false;
     195      //
    186196      // lbJobsAborted
    187197      //
     
    366376      this.gbOnlineTime.BackColor = System.Drawing.SystemColors.Control;
    367377      this.gbOnlineTime.Controls.Add(this.label1);
    368       this.gbOnlineTime.Location = new System.Drawing.Point(9, 117);
     378      this.gbOnlineTime.Location = new System.Drawing.Point(9, 127);
    369379      this.gbOnlineTime.Name = "gbOnlineTime";
    370       this.gbOnlineTime.Size = new System.Drawing.Size(409, 354);
     380      this.gbOnlineTime.Size = new System.Drawing.Size(409, 344);
    371381      this.gbOnlineTime.TabIndex = 4;
    372382      this.gbOnlineTime.TabStop = false;
     
    385395      // gbServerConnection
    386396      //
     397      this.gbServerConnection.Controls.Add(this.btn_clientShutdown);
    387398      this.gbServerConnection.Controls.Add(this.lbStatus);
    388399      this.gbServerConnection.Controls.Add(this.lbStatusCaption);
     
    395406      this.gbServerConnection.Location = new System.Drawing.Point(8, 6);
    396407      this.gbServerConnection.Name = "gbServerConnection";
    397       this.gbServerConnection.Size = new System.Drawing.Size(410, 105);
     408      this.gbServerConnection.Size = new System.Drawing.Size(410, 115);
    398409      this.gbServerConnection.TabIndex = 2;
    399410      this.gbServerConnection.TabStop = false;
     
    470481      this.lbPortCaption.Text = "Port:";
    471482      //
    472       // pbGraph
    473       //
    474       this.pbGraph.Location = new System.Drawing.Point(292, 19);
    475       this.pbGraph.Name = "pbGraph";
    476       this.pbGraph.Size = new System.Drawing.Size(112, 108);
    477       this.pbGraph.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
    478       this.pbGraph.TabIndex = 21;
    479       this.pbGraph.TabStop = false;
     483      // btn_clientShutdown
     484      //
     485      this.btn_clientShutdown.Location = new System.Drawing.Point(257, 80);
     486      this.btn_clientShutdown.Name = "btn_clientShutdown";
     487      this.btn_clientShutdown.Size = new System.Drawing.Size(147, 23);
     488      this.btn_clientShutdown.TabIndex = 8;
     489      this.btn_clientShutdown.Text = "Shutdown Client";
     490      this.btn_clientShutdown.UseVisualStyleBackColor = true;
     491      this.btn_clientShutdown.Click += new System.EventHandler(this.btn_clientShutdown_Click);
    480492      //
    481493      // HiveClientConsole
     
    495507      this.gbCommon.ResumeLayout(false);
    496508      this.gbCommon.PerformLayout();
     509      ((System.ComponentModel.ISupportInitialize)(this.pbGraph)).EndInit();
    497510      this.gbEventLog.ResumeLayout(false);
    498511      this.tabPage2.ResumeLayout(false);
     
    501514      this.gbServerConnection.ResumeLayout(false);
    502515      this.gbServerConnection.PerformLayout();
    503       ((System.ComponentModel.ISupportInitialize)(this.pbGraph)).EndInit();
    504516      this.ResumeLayout(false);
    505517
     
    548560    private System.Windows.Forms.Label label1;
    549561    private System.Windows.Forms.PictureBox pbGraph;
     562    private System.Windows.Forms.Button btn_clientShutdown;
    550563  }
    551564}
  • trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.cs

    r1080 r1087  
    166166        done = allProgress / jobs.Length;
    167167
    168         myPane.AddPieSlice(done, Color.Green, 0.1, "");
    169         myPane.AddPieSlice(1-done, Color.Red, 0.1, "");
     168        myPane.AddPieSlice(done, Color.Green, 0, "");
     169        myPane.AddPieSlice(1-done, Color.Red, 0, "");
    170170      }
    171171      //Hides the slice labels
     
    318318    }
    319319
     320    private void btn_clientShutdown_Click(object sender, EventArgs e) {
     321      DialogResult res = MessageBox.Show("Do you really want to shutdown the Hive Client?", "Hive Client Console", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
     322      if (res == DialogResult.Yes) {
     323        cccc.ShutdownClient();
     324        this.Close();
     325      }
     326    }
     327
    320328    #endregion
     329
    321330  }
    322331}
  • trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.resx

    r1002 r1087  
    127127        ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAABS
    128128        CgAAAk1TRnQBSQFMAgEBAgEAAQQBAAEEAQABEAEAARABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFA
    129         AwABEAMAAQEBAAEgBgABECoAAUMCAQF0AUkCCQHxAwoB/wFfAgMB1AEgAgEBLCwAAUMCAQF0AUkCCQHx
    130         AwoB/wFfAgMB1AEgAgEBLKQAAUcCCgHyAZMBZAEKAf8BvwF9AQoB/wG9AXoBCgH/AboBdwEKAf8BuAF0
    131         AQoB/wG2AXIBCgH/AT4BJwEKAf8BPQIBAWUcAAFHAgoB8gIKAaQB/wIKAdYB/wIKAdQB/wIKAdIB/wIK
    132         AdAB/wIKAc4B/wIKAUUB/wE9AgEBZZgAARQBEAEKAf8BxwGBAQoB/wHDAYEBCgH/AbEBbAEKAf8BsQFs
    133         AQoB/wGxAWwBCgH/AbEBbAEKAf8BswFuAQoB/wG2AXIBCgH/AbQBbwEKAf8BWgIFAeQUAAIKARUB/wIK
    134         AdwB/wIKAdkB/wIKAcoB/wIKAcoB/wIKAcoB/wIKAcoB/wIKAcsB/wIKAc4B/wIKAcwB/wFaAgUB5JAA
    135         AwoB/wHLAYEBCgH/AbsBeAEKAf8BtgFyAQoB/wG2AXIBCgH/Ae4B3AHEBf8BvgGBAScB/wG2AXIBCgH/
    136         AbYBcgEKAf8BtgFyAQoB/wG0AW8BCgH/AUkCAgGGDAADCgH/AgoB4AH/AgoB0gH/AgoBzgH/AjcB1gH/
    137         AgoBzgH/AgoBzgH/AgoBzgH/Ag0BzgH/AgoBzgH/AgoBzgH/AgoBzAH/AUkCAgGGiAABLAIBAUIB0AGG
    138         AQoB/wHHAYEBCgH/AboBdwEKAf8BugF3AQoB/wG6AXcBCgH/AdABnAFbBf8BugF3AQoB/wG6AXcBCgH/
    139         AboBdwEKAf8BugF3AQoB/wG2AXIBCgH/AV4BOQEKAf8IAAEsAgEBQgIKAeQB/wIKAdwB/wIKAdIB/wKf
    140         Ae0F/wJQAd4B/wIKAdIB/wL0Af0F/wINAdIB/wIKAdIB/wIKAc4B/wIKAWkB/4gAAwoB/wHSAYkBCgH/
    141         Ab8BfQEKAf8BvwF9AQoB/wG/AX0BCgH/Ab8BfQEKAf8B0wGfAVsF/wG/AX0BCgH/Ab8BfQEKAf8BvwF9
    142         AQoB/wG/AX0BCgH/Ab4BfAEKAf8BtgFyAQoB/wE2AgEBVwQAAwoB/wIKAeUB/wIKAdYB/wIKAdYN/wL1
    143         Af0J/wLiAfoB/wIKAdYB/wIKAdUB/wIKAc4B/wE2AgEBV4QAAVIBOgEKAf8B1AGMAQoB/wHEAYEBCgH/
    144         AcQBgQEKAf8BxAGBAQoB/wHEAYEBCgH/AdcBpAFcBf8BxAGBAQoB/wHEAYEBCgH/AcQBgQEKAf8BxAGB
    145         AQoB/wHEAYEBCgH/AbgBdAEKAf8BUwIHAewEAAIKAVgB/wIKAegB/wIKAdoB/wIKAdoB/wIKAdoR/wLi
    146         AfoB/wIKAdoB/wIKAdoB/wIKAdoB/wIKAdAB/wFTAgcB7IQAAXIBTwEKAf8B1wGOAQoB/wHJAYEBCgH/
    147         AckBgQEKAf8ByQGBAQoB/wHJAYEBCgn/AckBgQEKAf8ByQGBAQoB/wHJAYEBCgH/AckBgQEKAf8ByQGB
    148         AQoB/wG6AXcBCgH/AwoB/wQAAgoBewH/AgoB6QH/AgoB3gH/AgoB3gH/AgoB3gH/AvQB/Q3/AlAB5wH/
    149         AgoB3gH/AgoB3gH/AgoB3gH/AgoB0gH/AwoB/4QAAWIBQAEKAf8B2QGRAQoB/wHOAYMBCgH/Ac4BgwEK
    150         Af8BzgGDAQoB/wHOAYMBCgH/Ac4BgwEKAf8B1wGcATsB/wHOAYMBCgH/Ac4BgwEKAf8BzgGDAQoB/wHO
    151         AYMBCgH/Ac4BgwEKAf8BvQF6AQoB/wEpAgoB+QQAAQoBDwFhAf8CCgHsAf8CCgHiAf8CCgHiAf8C9AH9
    152         Ff8CUAHqAf8CCgHiAf8CCgHiAf8CCgHUAf8BKQIKAfmEAAENAQsBCgH/AdsBlAEKAf8B0gGJAQoB/wHS
    153         AYkBCgH/AdIBiQEKAf8B0gGJAQoB/wHSAYkBCgH/AesBywGQAf8B0gGJAQoB/wHSAYkBCgH/AdIBiQEK
    154         Af8B0gGJAQoB/wHEAYEBCgH/Ab8BfQEKAf8BUQICAZsEAAIKAQ0B/wIKAe0B/wIKAeYB/wIKAeUB/wL9
    155         Af4F/wLiAfwB/wIKAeUJ/wJ7AfEB/wIKAeUB/wIKAdoB/wIKAdYB/wFRAgIBm4QAAVgCAgGyAd4BmAEK
    156         Af8B2wGUAQoB/wHXAY4BCgH/AdcBjgEKAf8B1wGOAQoB/wH7AfYB6wX/AdcBjgEKAf8B1wGOAQoB/wHX
    157         AY4BCgH/AdYBjQEKAf8BxAGBAQoB/wGpAWsBCgH/CAABWAICAbIBCgEUAe8B/wIKAe0B/wIKAekB/wIK
    158         AekB/wLhAfwB/wIKAekB/wIKAekB/wIKAekB/wJ7AfMB/wIKAekB/wIKAegB/wIKAdoB/wEKARIBnQH/
    159         jAABRAEpAQoB/wHdAZcBCgH/AdsBlAEKAf8B2wGUAQoB/wHbAZQBCgH/AdsBlAEKAf8B3AGXARAB/wHb
    160         AZQBCgH/AdsBlAEKAf8B1QGMAQoB/wHJAYEBCgH/AdEBiAEKAf8BHgIKAfwMAAIKAT4B/wIKAe8B/wIK
    161         Ae0B/wIKAe0B/wIKAe0B/wIKAe0B/wIKAe0B/wIKAe0B/wIKAe0B/wIKAegB/wIKAd4B/wEKAR0B4gH/
    162         AR4CCgH8jAABGQIBASEBkAFeAQoB/wHfAZkBCgH/AdsBlAEKAf8B2QGRAQoB/wHYAZABCgH/AdgBkAEK
    163         Af8B0wGKAQoB/wHQAYYBCgH/Ac4BgwEKAf8B2gGSAQoB/wEVARABCgH/EAABGQIBASECCgGHAf8BCgEQ
    164         AfEB/wIKAe0B/wIKAewB/wIKAesB/wIKAesB/wIKAeYB/wIKAeQB/wIKAeIB/wEKAScB5gH/AgoBFAH/
    165         lAABEgIBARYBLwEhAQoB/wHSAYkBCgH/AeIBnQEKAf8B2QGRAQoB/wHXAY4BCgH/AdUBjAEKAf8B4QGb
    166         AQoB/wHOAYQBCgH/ARQCCgH+GAABEgIBARYCCgEuAf8BCgEQAdMB/wEKASEB9AH/AgoB7AH/AgoB6QH/
    167         AQoBCwHoAf8BCgEpAfAB/wIKAcwB/wEUAgoB/qAAAUYCAQF9AwoB/wFbAUIBCgH/AXwBWwEKAf8BPAEt
    168         AQoB/wEUAgoB/gEUAgEBGiQAAUYCAQF9AwoB/wIKAV4B/wIKAYEB/wIKAT4B/wEUAgoB/gEUAgEBGv8A
     129        AwABEAMAAQEBAAEgBgABECoAAUMCAQF0AU0CCQHxAwsB/wFgAgMB1AEgAgEBLCwAAUMCAQF0AU0CCQHx
     130        AwsB/wFgAgMB1AEgAgEBLKQAAUoCCgHyAZMBZQELAf8BvwF+AQsB/wG9AXsBCwH/AboBeAELAf8BuAF1
     131        AQsB/wG2AXMBCwH/AT8BKAELAf8BPQIBAWUcAAFKAgoB8gILAaQB/wILAdYB/wILAdQB/wILAdIB/wIL
     132        AdAB/wILAc4B/wILAUYB/wE9AgEBZZgAARUBEQELAf8BxwGBAQsB/wHDAYEBCwH/AbEBbQELAf8BsQFt
     133        AQsB/wGxAW0BCwH/AbEBbQELAf8BswFvAQsB/wG2AXMBCwH/AbQBcAELAf8BXAIFAeQUAAILARYB/wIL
     134        AdwB/wILAdkB/wILAcoB/wILAcoB/wILAcoB/wILAcoB/wILAcsB/wILAc4B/wILAcwB/wFcAgUB5JAA
     135        AwsB/wHLAYEBCwH/AbsBeQELAf8BtgFzAQsB/wG2AXMBCwH/Ae4B3AHEBf8BvgGBASgB/wG2AXMBCwH/
     136        AbYBcwELAf8BtgFzAQsB/wG0AXABCwH/AUkCAgGGDAADCwH/AgsB4AH/AgsB0gH/AgsBzgH/AjgB1gH/
     137        AgsBzgH/AgsBzgH/AgsBzgH/Ag4BzgH/AgsBzgH/AgsBzgH/AgsBzAH/AUkCAgGGiAABLAIBAUIB0AGG
     138        AQsB/wHHAYEBCwH/AboBeAELAf8BugF4AQsB/wG6AXgBCwH/AdABnAFcBf8BugF4AQsB/wG6AXgBCwH/
     139        AboBeAELAf8BugF4AQsB/wG2AXMBCwH/AV8BOgELAf8IAAEsAgEBQgILAeQB/wILAdwB/wILAdIB/wKf
     140        Ae0F/wJRAd4B/wILAdIB/wL0Af0F/wIOAdIB/wILAdIB/wILAc4B/wILAWoB/4gAAwsB/wHSAYkBCwH/
     141        Ab8BfgELAf8BvwF+AQsB/wG/AX4BCwH/Ab8BfgELAf8B0wGfAVwF/wG/AX4BCwH/Ab8BfgELAf8BvwF+
     142        AQsB/wG/AX4BCwH/Ab4BfQELAf8BtgFzAQsB/wE2AgEBVwQAAwsB/wILAeUB/wILAdYB/wILAdYN/wL1
     143        Af0J/wLiAfoB/wILAdYB/wILAdUB/wILAc4B/wE2AgEBV4QAAVMBOwELAf8B1AGMAQsB/wHEAYEBCwH/
     144        AcQBgQELAf8BxAGBAQsB/wHEAYEBCwH/AdcBpAFdBf8BxAGBAQsB/wHEAYEBCwH/AcQBgQELAf8BxAGB
     145        AQsB/wHEAYEBCwH/AbgBdQELAf8BVwIHAewEAAILAVkB/wILAegB/wILAdoB/wILAdoB/wILAdoR/wLi
     146        AfoB/wILAdoB/wILAdoB/wILAdoB/wILAdAB/wFXAgcB7IQAAXMBUAELAf8B1wGOAQsB/wHJAYEBCwH/
     147        AckBgQELAf8ByQGBAQsB/wHJAYEBCwn/AckBgQELAf8ByQGBAQsB/wHJAYEBCwH/AckBgQELAf8ByQGB
     148        AQsB/wG6AXgBCwH/AwsB/wQAAgsBfAH/AgsB6QH/AgsB3gH/AgsB3gH/AgsB3gH/AvQB/Q3/AlEB5wH/
     149        AgsB3gH/AgsB3gH/AgsB3gH/AgsB0gH/AwsB/4QAAWMBQQELAf8B2QGRAQsB/wHOAYMBCwH/Ac4BgwEL
     150        Af8BzgGDAQsB/wHOAYMBCwH/Ac4BgwELAf8B1wGcATwB/wHOAYMBCwH/Ac4BgwELAf8BzgGDAQsB/wHO
     151        AYMBCwH/Ac4BgwELAf8BvQF7AQsB/wEsAgsB+QQAAQsBEAFiAf8CCwHsAf8CCwHiAf8CCwHiAf8C9AH9
     152        Ff8CUQHqAf8CCwHiAf8CCwHiAf8CCwHUAf8BLAILAfmEAAEOAQwBCwH/AdsBlAELAf8B0gGJAQsB/wHS
     153        AYkBCwH/AdIBiQELAf8B0gGJAQsB/wHSAYkBCwH/AesBywGQAf8B0gGJAQsB/wHSAYkBCwH/AdIBiQEL
     154        Af8B0gGJAQsB/wHEAYEBCwH/Ab8BfgELAf8BUQICAZsEAAILAQ4B/wILAe0B/wILAeYB/wILAeUB/wL9
     155        Af4F/wLiAfwB/wILAeUJ/wJ8AfEB/wILAeUB/wILAdoB/wILAdYB/wFRAgIBm4QAAVgCAgGyAd4BmAEL
     156        Af8B2wGUAQsB/wHXAY4BCwH/AdcBjgELAf8B1wGOAQsB/wH7AfYB6wX/AdcBjgELAf8B1wGOAQsB/wHX
     157        AY4BCwH/AdYBjQELAf8BxAGBAQsB/wGpAWwBCwH/CAABWAICAbIBCwEVAe8B/wILAe0B/wILAekB/wIL
     158        AekB/wLhAfwB/wILAekB/wILAekB/wILAekB/wJ8AfMB/wILAekB/wILAegB/wILAdoB/wELARMBnQH/
     159        jAABRQEqAQsB/wHdAZcBCwH/AdsBlAELAf8B2wGUAQsB/wHbAZQBCwH/AdsBlAELAf8B3AGXAREB/wHb
     160        AZQBCwH/AdsBlAELAf8B1QGMAQsB/wHJAYEBCwH/AdEBiAELAf8BIQILAfwMAAILAT8B/wILAe8B/wIL
     161        Ae0B/wILAe0B/wILAe0B/wILAe0B/wILAe0B/wILAe0B/wILAe0B/wILAegB/wILAd4B/wELAR4B4gH/
     162        ASECCwH8jAABGQIBASEBkAFfAQsB/wHfAZkBCwH/AdsBlAELAf8B2QGRAQsB/wHYAZABCwH/AdgBkAEL
     163        Af8B0wGKAQsB/wHQAYYBCwH/Ac4BgwELAf8B2gGSAQsB/wEWAREBCwH/EAABGQIBASECCwGHAf8BCwER
     164        AfEB/wILAe0B/wILAewB/wILAesB/wILAesB/wILAeYB/wILAeQB/wILAeIB/wELASgB5gH/AgsBFQH/
     165        lAABEgIBARYBMAEiAQsB/wHSAYkBCwH/AeIBnQELAf8B2QGRAQsB/wHXAY4BCwH/AdUBjAELAf8B4QGb
     166        AQsB/wHOAYQBCwH/ARYCCwH+GAABEgIBARYCCwEvAf8BCwERAdMB/wELASIB9AH/AgsB7AH/AgsB6QH/
     167        AQsBDAHoAf8BCwEqAfAB/wILAcwB/wEWAgsB/qAAAUYCAQF9AwsB/wFcAUMBCwH/AX0BXAELAf8BPQEu
     168        AQsB/wEWAgsB/gEUAgEBGiQAAUYCAQF9AwsB/wILAV8B/wILAYEB/wILAT8B/wEWAgsB/gEUAgEBGv8A
    169169        kQABQgFNAT4HAAE+AwABKAMAAUADAAEQAwABAQEAAQEFAAGAFwAD/wEAAfwBHwH8AR8EAAHwAQcB8AEH
    170170        BAAB4AEDAeABAwQAAcABAQHAAQEEAAGAAQEBgAEBBAABgAEAAYAFAAGAAQABgAUAAYABAAGABQABgAEA
  • trunk/sources/HeuristicLab.Hive.Client.Console/Service References/ClientService/Reference.cs

    r1002 r1087  
    353353       
    354354        HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer EndGetCurrentConnection(System.IAsyncResult result);
     355       
     356        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientConsoleCommunicator/ShutdownClient", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/ShutdownClientResponse")]
     357        void ShutdownClient();
     358       
     359        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientConsoleCommunicator/ShutdownClient", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/ShutdownClientResponse")]
     360        System.IAsyncResult BeginShutdownClient(System.AsyncCallback callback, object asyncState);
     361       
     362        void EndShutdownClient(System.IAsyncResult result);
    355363    }
    356364   
     
    450458        private System.Threading.SendOrPostCallback onGetCurrentConnectionCompletedDelegate;
    451459       
     460        private BeginOperationDelegate onBeginShutdownClientDelegate;
     461       
     462        private EndOperationDelegate onEndShutdownClientDelegate;
     463       
     464        private System.Threading.SendOrPostCallback onShutdownClientCompletedDelegate;
     465       
    452466        public ClientConsoleCommunicatorClient() {
    453467        }
     
    478492       
    479493        public event System.EventHandler<GetCurrentConnectionCompletedEventArgs> GetCurrentConnectionCompleted;
     494       
     495        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> ShutdownClientCompleted;
    480496       
    481497        public HeuristicLab.Hive.Client.Console.ClientService.StatusCommons GetStatusInfos() {
     
    718734            base.InvokeAsync(this.onBeginGetCurrentConnectionDelegate, null, this.onEndGetCurrentConnectionDelegate, this.onGetCurrentConnectionCompletedDelegate, userState);
    719735        }
     736       
     737        public void ShutdownClient() {
     738            base.Channel.ShutdownClient();
     739        }
     740       
     741        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
     742        public System.IAsyncResult BeginShutdownClient(System.AsyncCallback callback, object asyncState) {
     743            return base.Channel.BeginShutdownClient(callback, asyncState);
     744        }
     745       
     746        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
     747        public void EndShutdownClient(System.IAsyncResult result) {
     748            base.Channel.EndShutdownClient(result);
     749        }
     750       
     751        private System.IAsyncResult OnBeginShutdownClient(object[] inValues, System.AsyncCallback callback, object asyncState) {
     752            return this.BeginShutdownClient(callback, asyncState);
     753        }
     754       
     755        private object[] OnEndShutdownClient(System.IAsyncResult result) {
     756            this.EndShutdownClient(result);
     757            return null;
     758        }
     759       
     760        private void OnShutdownClientCompleted(object state) {
     761            if ((this.ShutdownClientCompleted != null)) {
     762                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
     763                this.ShutdownClientCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
     764            }
     765        }
     766       
     767        public void ShutdownClientAsync() {
     768            this.ShutdownClientAsync(null);
     769        }
     770       
     771        public void ShutdownClientAsync(object userState) {
     772            if ((this.onBeginShutdownClientDelegate == null)) {
     773                this.onBeginShutdownClientDelegate = new BeginOperationDelegate(this.OnBeginShutdownClient);
     774            }
     775            if ((this.onEndShutdownClientDelegate == null)) {
     776                this.onEndShutdownClientDelegate = new EndOperationDelegate(this.OnEndShutdownClient);
     777            }
     778            if ((this.onShutdownClientCompletedDelegate == null)) {
     779                this.onShutdownClientCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnShutdownClientCompleted);
     780            }
     781            base.InvokeAsync(this.onBeginShutdownClientDelegate, null, this.onEndShutdownClientDelegate, this.onShutdownClientCompletedDelegate, userState);
     782        }
    720783    }
    721784}
  • trunk/sources/HeuristicLab.Hive.Client.Console/Service References/ClientService/service.wsdl

    r973 r1087  
    7272    <wsdl:part name="parameters" element="tns:GetCurrentConnectionResponse" />
    7373  </wsdl:message>
     74  <wsdl:message name="IClientConsoleCommunicator_ShutdownClient_InputMessage">
     75    <wsdl:part name="parameters" element="tns:ShutdownClient" />
     76  </wsdl:message>
     77  <wsdl:message name="IClientConsoleCommunicator_ShutdownClient_OutputMessage">
     78    <wsdl:part name="parameters" element="tns:ShutdownClientResponse" />
     79  </wsdl:message>
    7480  <wsdl:portType name="IClientConsoleCommunicator">
    7581    <wsdl:operation name="GetStatusInfos">
     
    9298      <wsdl:input wsaw:Action="http://tempuri.org/IClientConsoleCommunicator/GetCurrentConnection" message="tns:IClientConsoleCommunicator_GetCurrentConnection_InputMessage" />
    9399      <wsdl:output wsaw:Action="http://tempuri.org/IClientConsoleCommunicator/GetCurrentConnectionResponse" message="tns:IClientConsoleCommunicator_GetCurrentConnection_OutputMessage" />
     100    </wsdl:operation>
     101    <wsdl:operation name="ShutdownClient">
     102      <wsdl:input wsaw:Action="http://tempuri.org/IClientConsoleCommunicator/ShutdownClient" message="tns:IClientConsoleCommunicator_ShutdownClient_InputMessage" />
     103      <wsdl:output wsaw:Action="http://tempuri.org/IClientConsoleCommunicator/ShutdownClientResponse" message="tns:IClientConsoleCommunicator_ShutdownClient_OutputMessage" />
    94104    </wsdl:operation>
    95105  </wsdl:portType>
     
    143153      </wsdl:output>
    144154    </wsdl:operation>
     155    <wsdl:operation name="ShutdownClient">
     156      <soap12:operation soapAction="http://tempuri.org/IClientConsoleCommunicator/ShutdownClient" style="document" />
     157      <wsdl:input>
     158        <soap12:body use="literal" />
     159      </wsdl:input>
     160      <wsdl:output>
     161        <soap12:body use="literal" />
     162      </wsdl:output>
     163    </wsdl:operation>
    145164  </wsdl:binding>
    146165  <wsdl:service name="ClientConsoleCommunicator">
  • trunk/sources/HeuristicLab.Hive.Client.Console/Service References/ClientService/service.xsd

    r973 r1087  
    6060    </xs:complexType>
    6161  </xs:element>
     62  <xs:element name="ShutdownClient">
     63    <xs:complexType>
     64      <xs:sequence />
     65    </xs:complexType>
     66  </xs:element>
     67  <xs:element name="ShutdownClientResponse">
     68    <xs:complexType>
     69      <xs:sequence />
     70    </xs:complexType>
     71  </xs:element>
    6272</xs:schema>
Note: See TracChangeset for help on using the changeset viewer.