Revision 42800be8 trunk/Pithos.ShellExtensions/Service References/PithosService/Reference.cs

b/trunk/Pithos.ShellExtensions/Service References/PithosService/Reference.cs
1 1
//------------------------------------------------------------------------------
2 2
// <auto-generated>
3 3
//     This code was generated by a tool.
4
//     Runtime Version:4.0.30319.235
4
//     Runtime Version:4.0.30319.488
5 5
//
6 6
//     Changes to this file may cause incorrect behavior and will be lost if
7 7
//     the code is regenerated.
......
244 244
            base.InvokeAsync(this.onBeginGetSettingsDelegate, null, this.onEndGetSettingsDelegate, this.onGetSettingsCompletedDelegate, userState);
245 245
        }
246 246
    }
247
    
248
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
249
    [System.ServiceModel.ServiceContractAttribute(Namespace="http://PITHOS.Client.Commands", ConfigurationName="PithosService.ICommandsService")]
250
    public interface ICommandsService {
251
        
252
        [System.ServiceModel.OperationContractAttribute(Action="http://PITHOS.Client.Commands/ICommandsService/ShowProperties", ReplyAction="http://PITHOS.Client.Commands/ICommandsService/ShowPropertiesResponse")]
253
        void ShowProperties(string fileName);
254
        
255
        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://PITHOS.Client.Commands/ICommandsService/ShowProperties", ReplyAction="http://PITHOS.Client.Commands/ICommandsService/ShowPropertiesResponse")]
256
        System.IAsyncResult BeginShowProperties(string fileName, System.AsyncCallback callback, object asyncState);
257
        
258
        void EndShowProperties(System.IAsyncResult result);
259
    }
260
    
261
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
262
    public interface ICommandsServiceChannel : Pithos.ShellExtensions.PithosService.ICommandsService, System.ServiceModel.IClientChannel {
263
    }
264
    
265
    [System.Diagnostics.DebuggerStepThroughAttribute()]
266
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
267
    public partial class CommandsServiceClient : System.ServiceModel.ClientBase<Pithos.ShellExtensions.PithosService.ICommandsService>, Pithos.ShellExtensions.PithosService.ICommandsService {
268
        
269
        private BeginOperationDelegate onBeginShowPropertiesDelegate;
270
        
271
        private EndOperationDelegate onEndShowPropertiesDelegate;
272
        
273
        private System.Threading.SendOrPostCallback onShowPropertiesCompletedDelegate;
274
        
275
        public CommandsServiceClient() {
276
        }
277
        
278
        public CommandsServiceClient(string endpointConfigurationName) : 
279
                base(endpointConfigurationName) {
280
        }
281
        
282
        public CommandsServiceClient(string endpointConfigurationName, string remoteAddress) : 
283
                base(endpointConfigurationName, remoteAddress) {
284
        }
285
        
286
        public CommandsServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
287
                base(endpointConfigurationName, remoteAddress) {
288
        }
289
        
290
        public CommandsServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
291
                base(binding, remoteAddress) {
292
        }
293
        
294
        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> ShowPropertiesCompleted;
295
        
296
        public void ShowProperties(string fileName) {
297
            base.Channel.ShowProperties(fileName);
298
        }
299
        
300
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
301
        public System.IAsyncResult BeginShowProperties(string fileName, System.AsyncCallback callback, object asyncState) {
302
            return base.Channel.BeginShowProperties(fileName, callback, asyncState);
303
        }
304
        
305
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
306
        public void EndShowProperties(System.IAsyncResult result) {
307
            base.Channel.EndShowProperties(result);
308
        }
309
        
310
        private System.IAsyncResult OnBeginShowProperties(object[] inValues, System.AsyncCallback callback, object asyncState) {
311
            string fileName = ((string)(inValues[0]));
312
            return this.BeginShowProperties(fileName, callback, asyncState);
313
        }
314
        
315
        private object[] OnEndShowProperties(System.IAsyncResult result) {
316
            this.EndShowProperties(result);
317
            return null;
318
        }
319
        
320
        private void OnShowPropertiesCompleted(object state) {
321
            if ((this.ShowPropertiesCompleted != null)) {
322
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
323
                this.ShowPropertiesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
324
            }
325
        }
326
        
327
        public void ShowPropertiesAsync(string fileName) {
328
            this.ShowPropertiesAsync(fileName, null);
329
        }
330
        
331
        public void ShowPropertiesAsync(string fileName, object userState) {
332
            if ((this.onBeginShowPropertiesDelegate == null)) {
333
                this.onBeginShowPropertiesDelegate = new BeginOperationDelegate(this.OnBeginShowProperties);
334
            }
335
            if ((this.onEndShowPropertiesDelegate == null)) {
336
                this.onEndShowPropertiesDelegate = new EndOperationDelegate(this.OnEndShowProperties);
337
            }
338
            if ((this.onShowPropertiesCompletedDelegate == null)) {
339
                this.onShowPropertiesCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnShowPropertiesCompleted);
340
            }
341
            base.InvokeAsync(this.onBeginShowPropertiesDelegate, new object[] {
342
                        fileName}, this.onEndShowPropertiesDelegate, this.onShowPropertiesCompletedDelegate, userState);
343
        }
344
    }
247 345
}

Also available in: Unified diff