Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/05/09 13:41:21 (16 years ago)
Author:
whackl
Message:

implemented service methods to get and set an calender #468

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

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Client.Console/3.2/Service References/ClientService/Reference.cs

    r1449 r2023  
    356356       
    357357        void EndShutdownClient(System.IAsyncResult result);
     358       
     359        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientConsoleCommunicator/SetUptimeCalendar", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/SetUptimeCalendarResponse")]
     360        void SetUptimeCalendar(Calendar.Appointment[] appointments);
     361       
     362        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientConsoleCommunicator/SetUptimeCalendar", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/SetUptimeCalendarResponse")]
     363        System.IAsyncResult BeginSetUptimeCalendar(Calendar.Appointment[] appointments, System.AsyncCallback callback, object asyncState);
     364       
     365        void EndSetUptimeCalendar(System.IAsyncResult result);
     366       
     367        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IClientConsoleCommunicator/GetUptimeCalendar", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/GetUptimeCalendarResponse")]
     368        Calendar.Appointment[] GetUptimeCalendar();
     369       
     370        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://tempuri.org/IClientConsoleCommunicator/GetUptimeCalendar", ReplyAction="http://tempuri.org/IClientConsoleCommunicator/GetUptimeCalendarResponse")]
     371        System.IAsyncResult BeginGetUptimeCalendar(System.AsyncCallback callback, object asyncState);
     372       
     373        Calendar.Appointment[] EndGetUptimeCalendar(System.IAsyncResult result);
    358374    }
    359375   
     
    402418    [System.Diagnostics.DebuggerStepThroughAttribute()]
    403419    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
     420    public partial class GetUptimeCalendarCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
     421       
     422        private object[] results;
     423       
     424        public GetUptimeCalendarCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
     425                base(exception, cancelled, userState) {
     426            this.results = results;
     427        }
     428       
     429        public Calendar.Appointment[] Result {
     430            get {
     431                base.RaiseExceptionIfNecessary();
     432                return ((Calendar.Appointment[])(this.results[0]));
     433            }
     434        }
     435    }
     436   
     437    [System.Diagnostics.DebuggerStepThroughAttribute()]
     438    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
    404439    public partial class ClientConsoleCommunicatorClient : System.ServiceModel.ClientBase<HeuristicLab.Hive.Client.Console.ClientService.IClientConsoleCommunicator>, HeuristicLab.Hive.Client.Console.ClientService.IClientConsoleCommunicator {
    405440       
     
    433468       
    434469        private System.Threading.SendOrPostCallback onShutdownClientCompletedDelegate;
     470       
     471        private BeginOperationDelegate onBeginSetUptimeCalendarDelegate;
     472       
     473        private EndOperationDelegate onEndSetUptimeCalendarDelegate;
     474       
     475        private System.Threading.SendOrPostCallback onSetUptimeCalendarCompletedDelegate;
     476       
     477        private BeginOperationDelegate onBeginGetUptimeCalendarDelegate;
     478       
     479        private EndOperationDelegate onEndGetUptimeCalendarDelegate;
     480       
     481        private System.Threading.SendOrPostCallback onGetUptimeCalendarCompletedDelegate;
    435482       
    436483        public ClientConsoleCommunicatorClient() {
     
    462509       
    463510        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> ShutdownClientCompleted;
     511       
     512        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> SetUptimeCalendarCompleted;
     513       
     514        public event System.EventHandler<GetUptimeCalendarCompletedEventArgs> GetUptimeCalendarCompleted;
    464515       
    465516        public HeuristicLab.Hive.Client.Console.ClientService.StatusCommons GetStatusInfos() {
     
    701752            base.InvokeAsync(this.onBeginShutdownClientDelegate, null, this.onEndShutdownClientDelegate, this.onShutdownClientCompletedDelegate, userState);
    702753        }
     754       
     755        public void SetUptimeCalendar(Calendar.Appointment[] appointments) {
     756            base.Channel.SetUptimeCalendar(appointments);
     757        }
     758       
     759        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
     760        public System.IAsyncResult BeginSetUptimeCalendar(Calendar.Appointment[] appointments, System.AsyncCallback callback, object asyncState) {
     761            return base.Channel.BeginSetUptimeCalendar(appointments, callback, asyncState);
     762        }
     763       
     764        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
     765        public void EndSetUptimeCalendar(System.IAsyncResult result) {
     766            base.Channel.EndSetUptimeCalendar(result);
     767        }
     768       
     769        private System.IAsyncResult OnBeginSetUptimeCalendar(object[] inValues, System.AsyncCallback callback, object asyncState) {
     770            Calendar.Appointment[] appointments = ((Calendar.Appointment[])(inValues[0]));
     771            return this.BeginSetUptimeCalendar(appointments, callback, asyncState);
     772        }
     773       
     774        private object[] OnEndSetUptimeCalendar(System.IAsyncResult result) {
     775            this.EndSetUptimeCalendar(result);
     776            return null;
     777        }
     778       
     779        private void OnSetUptimeCalendarCompleted(object state) {
     780            if ((this.SetUptimeCalendarCompleted != null)) {
     781                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
     782                this.SetUptimeCalendarCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
     783            }
     784        }
     785       
     786        public void SetUptimeCalendarAsync(Calendar.Appointment[] appointments) {
     787            this.SetUptimeCalendarAsync(appointments, null);
     788        }
     789       
     790        public void SetUptimeCalendarAsync(Calendar.Appointment[] appointments, object userState) {
     791            if ((this.onBeginSetUptimeCalendarDelegate == null)) {
     792                this.onBeginSetUptimeCalendarDelegate = new BeginOperationDelegate(this.OnBeginSetUptimeCalendar);
     793            }
     794            if ((this.onEndSetUptimeCalendarDelegate == null)) {
     795                this.onEndSetUptimeCalendarDelegate = new EndOperationDelegate(this.OnEndSetUptimeCalendar);
     796            }
     797            if ((this.onSetUptimeCalendarCompletedDelegate == null)) {
     798                this.onSetUptimeCalendarCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSetUptimeCalendarCompleted);
     799            }
     800            base.InvokeAsync(this.onBeginSetUptimeCalendarDelegate, new object[] {
     801                        appointments}, this.onEndSetUptimeCalendarDelegate, this.onSetUptimeCalendarCompletedDelegate, userState);
     802        }
     803       
     804        public Calendar.Appointment[] GetUptimeCalendar() {
     805            return base.Channel.GetUptimeCalendar();
     806        }
     807       
     808        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
     809        public System.IAsyncResult BeginGetUptimeCalendar(System.AsyncCallback callback, object asyncState) {
     810            return base.Channel.BeginGetUptimeCalendar(callback, asyncState);
     811        }
     812       
     813        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
     814        public Calendar.Appointment[] EndGetUptimeCalendar(System.IAsyncResult result) {
     815            return base.Channel.EndGetUptimeCalendar(result);
     816        }
     817       
     818        private System.IAsyncResult OnBeginGetUptimeCalendar(object[] inValues, System.AsyncCallback callback, object asyncState) {
     819            return this.BeginGetUptimeCalendar(callback, asyncState);
     820        }
     821       
     822        private object[] OnEndGetUptimeCalendar(System.IAsyncResult result) {
     823            Calendar.Appointment[] retVal = this.EndGetUptimeCalendar(result);
     824            return new object[] {
     825                    retVal};
     826        }
     827       
     828        private void OnGetUptimeCalendarCompleted(object state) {
     829            if ((this.GetUptimeCalendarCompleted != null)) {
     830                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
     831                this.GetUptimeCalendarCompleted(this, new GetUptimeCalendarCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
     832            }
     833        }
     834       
     835        public void GetUptimeCalendarAsync() {
     836            this.GetUptimeCalendarAsync(null);
     837        }
     838       
     839        public void GetUptimeCalendarAsync(object userState) {
     840            if ((this.onBeginGetUptimeCalendarDelegate == null)) {
     841                this.onBeginGetUptimeCalendarDelegate = new BeginOperationDelegate(this.OnBeginGetUptimeCalendar);
     842            }
     843            if ((this.onEndGetUptimeCalendarDelegate == null)) {
     844                this.onEndGetUptimeCalendarDelegate = new EndOperationDelegate(this.OnEndGetUptimeCalendar);
     845            }
     846            if ((this.onGetUptimeCalendarCompletedDelegate == null)) {
     847                this.onGetUptimeCalendarCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetUptimeCalendarCompleted);
     848            }
     849            base.InvokeAsync(this.onBeginGetUptimeCalendarDelegate, null, this.onEndGetUptimeCalendarDelegate, this.onGetUptimeCalendarCompletedDelegate, userState);
     850        }
    703851    }
    704852}
  • trunk/sources/HeuristicLab.Hive.Client.Console/3.2/Service References/ClientService/Reference.svcmap

    r1002 r2023  
    2626    <MetadataFile FileName="HeuristicLab.Hive.Client.Core.ClientConsoleService.xsd" MetadataType="Schema" ID="36748734-59b6-4ba4-950d-66ca1a4fc8bb" SourceId="1" SourceUrl="net.tcp://127.0.0.1:8000/ClientConsole/mex" />
    2727    <MetadataFile FileName="HeuristicLab.Hive.Client.Common.xsd" MetadataType="Schema" ID="0c1369fa-d4cc-4149-b202-00da9dd35972" SourceId="1" SourceUrl="net.tcp://127.0.0.1:8000/ClientConsole/mex" />
     28    <MetadataFile FileName="Calendar.xsd" MetadataType="Schema" ID="09fa9f67-e082-4dcb-9c41-a7a3f0fb7aef" SourceId="1" SourceUrl="net.tcp://127.0.0.1:8000/ClientConsole/mex" />
     29    <MetadataFile FileName="System.Drawing.xsd" MetadataType="Schema" ID="70cfc9bf-b4a8-419b-8c1f-379c0d78f9d2" SourceId="1" SourceUrl="net.tcp://127.0.0.1:8000/ClientConsole/mex" />
    2830  </Metadata>
    2931  <Extensions>
  • trunk/sources/HeuristicLab.Hive.Client.Console/3.2/Service References/ClientService/configuration.svcinfo

    r1449 r2023  
    66  </bindings>
    77  <endpoints>
    8     <endpoint normalizedDigest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;net.tcp://127.0.0.1:8000/ClientConsole/ClientConsoleCommunicator&quot; binding=&quot;netTcpBinding&quot; bindingConfiguration=&quot;NetTcpBinding_IClientConsoleCommunicator&quot; contract=&quot;ClientService.IClientConsoleCommunicator&quot; name=&quot;NetTcpBinding_IClientConsoleCommunicator&quot;&gt;&lt;identity&gt;&lt;userPrincipalName value=&quot;mse08026@fhs-hagenberg.ac.at&quot; /&gt;&lt;/identity&gt;&lt;/Data&gt;" digest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;net.tcp://127.0.0.1:8000/ClientConsole/ClientConsoleCommunicator&quot; binding=&quot;netTcpBinding&quot; bindingConfiguration=&quot;NetTcpBinding_IClientConsoleCommunicator&quot; contract=&quot;ClientService.IClientConsoleCommunicator&quot; name=&quot;NetTcpBinding_IClientConsoleCommunicator&quot;&gt;&lt;identity&gt;&lt;userPrincipalName value=&quot;mse08026@fhs-hagenberg.ac.at&quot; /&gt;&lt;/identity&gt;&lt;/Data&gt;" contractName="ClientService.IClientConsoleCommunicator" name="NetTcpBinding_IClientConsoleCommunicator" />
     8    <endpoint normalizedDigest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;net.tcp://127.0.0.1:8000/ClientConsole/ClientConsoleCommunicator&quot; binding=&quot;netTcpBinding&quot; bindingConfiguration=&quot;NetTcpBinding_IClientConsoleCommunicator&quot; contract=&quot;ClientService.IClientConsoleCommunicator&quot; name=&quot;NetTcpBinding_IClientConsoleCommunicator&quot;&gt;&lt;identity&gt;&lt;userPrincipalName value=&quot;mse08004@fhs-hagenberg.ac.at&quot; /&gt;&lt;/identity&gt;&lt;/Data&gt;" digest="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;Data address=&quot;net.tcp://127.0.0.1:8000/ClientConsole/ClientConsoleCommunicator&quot; binding=&quot;netTcpBinding&quot; bindingConfiguration=&quot;NetTcpBinding_IClientConsoleCommunicator&quot; contract=&quot;ClientService.IClientConsoleCommunicator&quot; name=&quot;NetTcpBinding_IClientConsoleCommunicator&quot;&gt;&lt;identity&gt;&lt;userPrincipalName value=&quot;mse08004@fhs-hagenberg.ac.at&quot; /&gt;&lt;/identity&gt;&lt;/Data&gt;" contractName="ClientService.IClientConsoleCommunicator" name="NetTcpBinding_IClientConsoleCommunicator" />
    99  </endpoints>
    1010</configurationSnapshot>
  • trunk/sources/HeuristicLab.Hive.Client.Console/3.2/Service References/ClientService/configuration91.svcinfo

    r1449 r2023  
    11<?xml version="1.0" encoding="utf-8"?>
    2 <SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="EjIgJ8KL6VTkdtRqvYxdsOZNF7s=">
     2<SavedWcfConfigurationInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="9.1" CheckSum="LJHqHAg9UO+arib7mQMPUcNSFqQ=">
    33  <bindingConfigurations>
    44    <bindingConfiguration bindingType="netTcpBinding" name="NetTcpBinding_IClientConsoleCommunicator">
     
    137137        </property>
    138138        <property path="/identity/userPrincipalName/value" isComplexType="false" isExplicitlyDefined="true" clrType="System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    139           <serializedValue>mse08026@fhs-hagenberg.ac.at</serializedValue>
     139          <serializedValue>mse08004@fhs-hagenberg.ac.at</serializedValue>
    140140        </property>
    141141        <property path="/identity/servicePrincipalName" isComplexType="true" isExplicitlyDefined="false" clrType="System.ServiceModel.Configuration.ServicePrincipalNameElement, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  • trunk/sources/HeuristicLab.Hive.Client.Console/3.2/Service References/ClientService/service.wsdl

    r1449 r2023  
    4040      <xsd:import namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Client.Core.ClientConsoleService" />
    4141      <xsd:import namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Client.Common" />
     42      <xsd:import namespace="http://schemas.datacontract.org/2004/07/Calendar" />
     43      <xsd:import namespace="http://schemas.datacontract.org/2004/07/System.Drawing" />
    4244    </xsd:schema>
    4345  </wsdl:types>
     
    7274    <wsdl:part name="parameters" element="tns:ShutdownClientResponse" />
    7375  </wsdl:message>
     76  <wsdl:message name="IClientConsoleCommunicator_SetUptimeCalendar_InputMessage">
     77    <wsdl:part name="parameters" element="tns:SetUptimeCalendar" />
     78  </wsdl:message>
     79  <wsdl:message name="IClientConsoleCommunicator_SetUptimeCalendar_OutputMessage">
     80    <wsdl:part name="parameters" element="tns:SetUptimeCalendarResponse" />
     81  </wsdl:message>
     82  <wsdl:message name="IClientConsoleCommunicator_GetUptimeCalendar_InputMessage">
     83    <wsdl:part name="parameters" element="tns:GetUptimeCalendar" />
     84  </wsdl:message>
     85  <wsdl:message name="IClientConsoleCommunicator_GetUptimeCalendar_OutputMessage">
     86    <wsdl:part name="parameters" element="tns:GetUptimeCalendarResponse" />
     87  </wsdl:message>
    7488  <wsdl:portType name="IClientConsoleCommunicator">
    7589    <wsdl:operation name="GetStatusInfos">
     
    92106      <wsdl:input wsaw:Action="http://tempuri.org/IClientConsoleCommunicator/ShutdownClient" message="tns:IClientConsoleCommunicator_ShutdownClient_InputMessage" />
    93107      <wsdl:output wsaw:Action="http://tempuri.org/IClientConsoleCommunicator/ShutdownClientResponse" message="tns:IClientConsoleCommunicator_ShutdownClient_OutputMessage" />
     108    </wsdl:operation>
     109    <wsdl:operation name="SetUptimeCalendar">
     110      <wsdl:input wsaw:Action="http://tempuri.org/IClientConsoleCommunicator/SetUptimeCalendar" message="tns:IClientConsoleCommunicator_SetUptimeCalendar_InputMessage" />
     111      <wsdl:output wsaw:Action="http://tempuri.org/IClientConsoleCommunicator/SetUptimeCalendarResponse" message="tns:IClientConsoleCommunicator_SetUptimeCalendar_OutputMessage" />
     112    </wsdl:operation>
     113    <wsdl:operation name="GetUptimeCalendar">
     114      <wsdl:input wsaw:Action="http://tempuri.org/IClientConsoleCommunicator/GetUptimeCalendar" message="tns:IClientConsoleCommunicator_GetUptimeCalendar_InputMessage" />
     115      <wsdl:output wsaw:Action="http://tempuri.org/IClientConsoleCommunicator/GetUptimeCalendarResponse" message="tns:IClientConsoleCommunicator_GetUptimeCalendar_OutputMessage" />
    94116    </wsdl:operation>
    95117  </wsdl:portType>
     
    143165      </wsdl:output>
    144166    </wsdl:operation>
     167    <wsdl:operation name="SetUptimeCalendar">
     168      <soap12:operation soapAction="http://tempuri.org/IClientConsoleCommunicator/SetUptimeCalendar" style="document" />
     169      <wsdl:input>
     170        <soap12:body use="literal" />
     171      </wsdl:input>
     172      <wsdl:output>
     173        <soap12:body use="literal" />
     174      </wsdl:output>
     175    </wsdl:operation>
     176    <wsdl:operation name="GetUptimeCalendar">
     177      <soap12:operation soapAction="http://tempuri.org/IClientConsoleCommunicator/GetUptimeCalendar" style="document" />
     178      <wsdl:input>
     179        <soap12:body use="literal" />
     180      </wsdl:input>
     181      <wsdl:output>
     182        <soap12:body use="literal" />
     183      </wsdl:output>
     184    </wsdl:operation>
    145185  </wsdl:binding>
    146186  <wsdl:service name="ClientConsoleCommunicator">
     
    150190        <wsa10:Address>net.tcp://127.0.0.1:8000/ClientConsole/ClientConsoleCommunicator</wsa10:Address>
    151191        <Identity xmlns="http://schemas.xmlsoap.org/ws/2006/02/addressingidentity">
    152           <Upn>mse08026@fhs-hagenberg.ac.at</Upn>
     192          <Upn>mse08004@fhs-hagenberg.ac.at</Upn>
    153193        </Identity>
    154194      </wsa10:EndpointReference>
  • trunk/sources/HeuristicLab.Hive.Client.Console/3.2/Service References/ClientService/service.xsd

    r1132 r2023  
    22<xs:schema xmlns:tns="http://tempuri.org/" elementFormDefault="qualified" targetNamespace="http://tempuri.org/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    33  <xs:import namespace="http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Client.Core.ClientConsoleService" />
     4  <xs:import namespace="http://schemas.datacontract.org/2004/07/Calendar" />
    45  <xs:element name="GetStatusInfos">
    56    <xs:complexType>
     
    5859    </xs:complexType>
    5960  </xs:element>
     61  <xs:element name="SetUptimeCalendar">
     62    <xs:complexType>
     63      <xs:sequence>
     64        <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/Calendar" minOccurs="0" name="appointments" nillable="true" type="q4:ArrayOfAppointment" />
     65      </xs:sequence>
     66    </xs:complexType>
     67  </xs:element>
     68  <xs:element name="SetUptimeCalendarResponse">
     69    <xs:complexType>
     70      <xs:sequence />
     71    </xs:complexType>
     72  </xs:element>
     73  <xs:element name="GetUptimeCalendar">
     74    <xs:complexType>
     75      <xs:sequence />
     76    </xs:complexType>
     77  </xs:element>
     78  <xs:element name="GetUptimeCalendarResponse">
     79    <xs:complexType>
     80      <xs:sequence>
     81        <xs:element xmlns:q5="http://schemas.datacontract.org/2004/07/Calendar" minOccurs="0" name="GetUptimeCalendarResult" nillable="true" type="q5:ArrayOfAppointment" />
     82      </xs:sequence>
     83    </xs:complexType>
     84  </xs:element>
    6085</xs:schema>
Note: See TracChangeset for help on using the changeset viewer.