Free cookie consent management tool by TermsFeed Policy Generator

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

added shutdown button (#455)

Location:
trunk/sources/HeuristicLab.Hive.Client.Console/Service References/ClientService
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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.