Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/30/10 13:47:43 (14 years ago)
Author:
cneumuel
Message:

added connection setup dialog

Location:
branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/HiveSlaveConsole.cs

    r4320 r4342  
    549549
    550550    private void btnDisconnect_Click(object sender, EventArgs e) {
    551       slaveCommunicator.DisconnectAsync();
     551      //slaveCommunicator.DisconnectAsync(); // [chn] todo
    552552    }
    553553
  • branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/Service References/SlaveConsoleService/Reference.cs

    r4320 r4342  
    346346        void EndSetConnection(System.IAsyncResult result);
    347347       
    348         [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveConsoleCommunicator/Disconnect", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/DisconnectResponse")]
    349         void Disconnect();
    350        
    351         [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/ISlaveConsoleCommunicator/Disconnect", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/DisconnectResponse")]
    352         System.IAsyncResult BeginDisconnect(System.AsyncCallback callback, object asyncState);
    353        
    354         void EndDisconnect(System.IAsyncResult result);
    355        
    356348        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ISlaveConsoleCommunicator/GetCurrentConnection", ReplyAction="http://tempuri.org/ISlaveConsoleCommunicator/GetCurrentConnectionResponse")]
    357349        HeuristicLab.Hive.Slave.Console.SlaveConsoleService.ConnectionContainer GetCurrentConnection();
     
    464456        private System.Threading.SendOrPostCallback onSetConnectionCompletedDelegate;
    465457       
    466         private BeginOperationDelegate onBeginDisconnectDelegate;
    467        
    468         private EndOperationDelegate onEndDisconnectDelegate;
    469        
    470         private System.Threading.SendOrPostCallback onDisconnectCompletedDelegate;
    471        
    472458        private BeginOperationDelegate onBeginGetCurrentConnectionDelegate;
    473459       
     
    516502       
    517503        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> SetConnectionCompleted;
    518        
    519         public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> DisconnectCompleted;
    520504       
    521505        public event System.EventHandler<GetCurrentConnectionCompletedEventArgs> GetCurrentConnectionCompleted;
     
    624608        }
    625609       
    626         public void Disconnect() {
    627             base.Channel.Disconnect();
    628         }
    629        
    630         [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    631         public System.IAsyncResult BeginDisconnect(System.AsyncCallback callback, object asyncState) {
    632             return base.Channel.BeginDisconnect(callback, asyncState);
    633         }
    634        
    635         [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    636         public void EndDisconnect(System.IAsyncResult result) {
    637             base.Channel.EndDisconnect(result);
    638         }
    639        
    640         private System.IAsyncResult OnBeginDisconnect(object[] inValues, System.AsyncCallback callback, object asyncState) {
    641             return this.BeginDisconnect(callback, asyncState);
    642         }
    643        
    644         private object[] OnEndDisconnect(System.IAsyncResult result) {
    645             this.EndDisconnect(result);
    646             return null;
    647         }
    648        
    649         private void OnDisconnectCompleted(object state) {
    650             if ((this.DisconnectCompleted != null)) {
    651                 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
    652                 this.DisconnectCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
    653             }
    654         }
    655        
    656         public void DisconnectAsync() {
    657             this.DisconnectAsync(null);
    658         }
    659        
    660         public void DisconnectAsync(object userState) {
    661             if ((this.onBeginDisconnectDelegate == null)) {
    662                 this.onBeginDisconnectDelegate = new BeginOperationDelegate(this.OnBeginDisconnect);
    663             }
    664             if ((this.onEndDisconnectDelegate == null)) {
    665                 this.onEndDisconnectDelegate = new EndOperationDelegate(this.OnEndDisconnect);
    666             }
    667             if ((this.onDisconnectCompletedDelegate == null)) {
    668                 this.onDisconnectCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnDisconnectCompleted);
    669             }
    670             base.InvokeAsync(this.onBeginDisconnectDelegate, null, this.onEndDisconnectDelegate, this.onDisconnectCompletedDelegate, userState);
    671         }
    672        
    673610        public HeuristicLab.Hive.Slave.Console.SlaveConsoleService.ConnectionContainer GetCurrentConnection() {
    674611            return base.Channel.GetCurrentConnection();
  • branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/Service References/SlaveConsoleService/service.wsdl

    r4320 r4342  
    3333    <wsdl:part name="parameters" element="tns:SetConnectionResponse" />
    3434  </wsdl:message>
    35   <wsdl:message name="ISlaveConsoleCommunicator_Disconnect_InputMessage">
    36     <wsdl:part name="parameters" element="tns:Disconnect" />
    37   </wsdl:message>
    38   <wsdl:message name="ISlaveConsoleCommunicator_Disconnect_OutputMessage">
    39     <wsdl:part name="parameters" element="tns:DisconnectResponse" />
    40   </wsdl:message>
    4135  <wsdl:message name="ISlaveConsoleCommunicator_GetCurrentConnection_InputMessage">
    4236    <wsdl:part name="parameters" element="tns:GetCurrentConnection" />
     
    7266      <wsdl:output wsaw:Action="http://tempuri.org/ISlaveConsoleCommunicator/SetConnectionResponse" message="tns:ISlaveConsoleCommunicator_SetConnection_OutputMessage" />
    7367    </wsdl:operation>
    74     <wsdl:operation name="Disconnect">
    75       <wsdl:input wsaw:Action="http://tempuri.org/ISlaveConsoleCommunicator/Disconnect" message="tns:ISlaveConsoleCommunicator_Disconnect_InputMessage" />
    76       <wsdl:output wsaw:Action="http://tempuri.org/ISlaveConsoleCommunicator/DisconnectResponse" message="tns:ISlaveConsoleCommunicator_Disconnect_OutputMessage" />
    77     </wsdl:operation>
    7868    <wsdl:operation name="GetCurrentConnection">
    7969      <wsdl:input wsaw:Action="http://tempuri.org/ISlaveConsoleCommunicator/GetCurrentConnection" message="tns:ISlaveConsoleCommunicator_GetCurrentConnection_InputMessage" />
     
    10898    <wsdl:operation name="SetConnection">
    10999      <soap12:operation soapAction="http://tempuri.org/ISlaveConsoleCommunicator/SetConnection" style="document" />
    110       <wsdl:input>
    111         <soap12:body use="literal" />
    112       </wsdl:input>
    113       <wsdl:output>
    114         <soap12:body use="literal" />
    115       </wsdl:output>
    116     </wsdl:operation>
    117     <wsdl:operation name="Disconnect">
    118       <soap12:operation soapAction="http://tempuri.org/ISlaveConsoleCommunicator/Disconnect" style="document" />
    119100      <wsdl:input>
    120101        <soap12:body use="literal" />
  • branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Slave.Console/3.3/Service References/SlaveConsoleService/service.xsd

    r4320 r4342  
    2323  </xs:element>
    2424  <xs:element name="SetConnectionResponse">
    25     <xs:complexType>
    26       <xs:sequence />
    27     </xs:complexType>
    28   </xs:element>
    29   <xs:element name="Disconnect">
    30     <xs:complexType>
    31       <xs:sequence />
    32     </xs:complexType>
    33   </xs:element>
    34   <xs:element name="DisconnectResponse">
    3525    <xs:complexType>
    3626      <xs:sequence />
Note: See TracChangeset for help on using the changeset viewer.