Free cookie consent management tool by TermsFeed Policy Generator

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

implemented service methods to get and set an calender #468

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.