Revision f3d080df trunk/Pithos.ShellExtensions/Service References/PithosService/Reference.cs

b/trunk/Pithos.ShellExtensions/Service References/PithosService/Reference.cs
249 249
    [System.ServiceModel.ServiceContractAttribute(Namespace="http://PITHOS.Client.Commands", ConfigurationName="PithosService.ICommandsService")]
250 250
    public interface ICommandsService {
251 251
        
252
        [System.ServiceModel.OperationContractAttribute(Action="http://PITHOS.Client.Commands/ICommandsService/ShowProperties", ReplyAction="http://PITHOS.Client.Commands/ICommandsService/ShowPropertiesResponse")]
252
        [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://PITHOS.Client.Commands/ICommandsService/ShowProperties")]
253 253
        void ShowProperties(string fileName);
254 254
        
255
        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://PITHOS.Client.Commands/ICommandsService/ShowProperties", ReplyAction="http://PITHOS.Client.Commands/ICommandsService/ShowPropertiesResponse")]
255
        [System.ServiceModel.OperationContractAttribute(IsOneWay=true, AsyncPattern=true, Action="http://PITHOS.Client.Commands/ICommandsService/ShowProperties")]
256 256
        System.IAsyncResult BeginShowProperties(string fileName, System.AsyncCallback callback, object asyncState);
257 257
        
258 258
        void EndShowProperties(System.IAsyncResult result);
259
        
260
        [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://PITHOS.Client.Commands/ICommandsService/GotoSite")]
261
        void GotoSite(string fileName);
262
        
263
        [System.ServiceModel.OperationContractAttribute(IsOneWay=true, AsyncPattern=true, Action="http://PITHOS.Client.Commands/ICommandsService/GotoSite")]
264
        System.IAsyncResult BeginGotoSite(string fileName, System.AsyncCallback callback, object asyncState);
265
        
266
        void EndGotoSite(System.IAsyncResult result);
259 267
    }
260 268
    
261 269
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
......
272 280
        
273 281
        private System.Threading.SendOrPostCallback onShowPropertiesCompletedDelegate;
274 282
        
283
        private BeginOperationDelegate onBeginGotoSiteDelegate;
284
        
285
        private EndOperationDelegate onEndGotoSiteDelegate;
286
        
287
        private System.Threading.SendOrPostCallback onGotoSiteCompletedDelegate;
288
        
275 289
        public CommandsServiceClient() {
276 290
        }
277 291
        
......
293 307
        
294 308
        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> ShowPropertiesCompleted;
295 309
        
310
        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> GotoSiteCompleted;
311
        
296 312
        public void ShowProperties(string fileName) {
297 313
            base.Channel.ShowProperties(fileName);
298 314
        }
......
341 357
            base.InvokeAsync(this.onBeginShowPropertiesDelegate, new object[] {
342 358
                        fileName}, this.onEndShowPropertiesDelegate, this.onShowPropertiesCompletedDelegate, userState);
343 359
        }
360
        
361
        public void GotoSite(string fileName) {
362
            base.Channel.GotoSite(fileName);
363
        }
364
        
365
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
366
        public System.IAsyncResult BeginGotoSite(string fileName, System.AsyncCallback callback, object asyncState) {
367
            return base.Channel.BeginGotoSite(fileName, callback, asyncState);
368
        }
369
        
370
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
371
        public void EndGotoSite(System.IAsyncResult result) {
372
            base.Channel.EndGotoSite(result);
373
        }
374
        
375
        private System.IAsyncResult OnBeginGotoSite(object[] inValues, System.AsyncCallback callback, object asyncState) {
376
            string fileName = ((string)(inValues[0]));
377
            return this.BeginGotoSite(fileName, callback, asyncState);
378
        }
379
        
380
        private object[] OnEndGotoSite(System.IAsyncResult result) {
381
            this.EndGotoSite(result);
382
            return null;
383
        }
384
        
385
        private void OnGotoSiteCompleted(object state) {
386
            if ((this.GotoSiteCompleted != null)) {
387
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
388
                this.GotoSiteCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
389
            }
390
        }
391
        
392
        public void GotoSiteAsync(string fileName) {
393
            this.GotoSiteAsync(fileName, null);
394
        }
395
        
396
        public void GotoSiteAsync(string fileName, object userState) {
397
            if ((this.onBeginGotoSiteDelegate == null)) {
398
                this.onBeginGotoSiteDelegate = new BeginOperationDelegate(this.OnBeginGotoSite);
399
            }
400
            if ((this.onEndGotoSiteDelegate == null)) {
401
                this.onEndGotoSiteDelegate = new EndOperationDelegate(this.OnEndGotoSite);
402
            }
403
            if ((this.onGotoSiteCompletedDelegate == null)) {
404
                this.onGotoSiteCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGotoSiteCompleted);
405
            }
406
            base.InvokeAsync(this.onBeginGotoSiteDelegate, new object[] {
407
                        fileName}, this.onEndGotoSiteDelegate, this.onGotoSiteCompletedDelegate, userState);
408
        }
344 409
    }
345 410
}

Also available in: Unified diff