Statistics
| Branch: | Revision:

root / trunk / Pithos.ShellExtensions / Service References / PithosService / Reference.cs @ 255f5f86

History | View | Annotate | Download (22.1 kB)

1
#region
2
/* -----------------------------------------------------------------------
3
 * <copyright file="Reference.cs" company="GRNet">
4
 * 
5
 * Copyright 2011-2012 GRNET S.A. All rights reserved.
6
 *
7
 * Redistribution and use in source and binary forms, with or
8
 * without modification, are permitted provided that the following
9
 * conditions are met:
10
 *
11
 *   1. Redistributions of source code must retain the above
12
 *      copyright notice, this list of conditions and the following
13
 *      disclaimer.
14
 *
15
 *   2. Redistributions in binary form must reproduce the above
16
 *      copyright notice, this list of conditions and the following
17
 *      disclaimer in the documentation and/or other materials
18
 *      provided with the distribution.
19
 *
20
 *
21
 * THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
22
 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
25
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
28
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
29
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31
 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32
 * POSSIBILITY OF SUCH DAMAGE.
33
 *
34
 * The views and conclusions contained in the software and
35
 * documentation are those of the authors and should not be
36
 * interpreted as representing official policies, either expressed
37
 * or implied, of GRNET S.A.
38
 * </copyright>
39
 * -----------------------------------------------------------------------
40
 */
41
#endregion
42

    
43
//------------------------------------------------------------------------------
44
// <auto-generated>
45
//     This code was generated by a tool.
46
//     Runtime Version:4.0.30319.488
47
//
48
//     Changes to this file may cause incorrect behavior and will be lost if
49
//     the code is regenerated.
50
// </auto-generated>
51
//------------------------------------------------------------------------------
52

    
53
namespace Pithos.ShellExtensions.PithosService {
54
    
55
    
56
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
57
    [System.ServiceModel.ServiceContractAttribute(Namespace="http://PITHOS.Client.Status", ConfigurationName="PithosService.IStatusService")]
58
    public interface IStatusService {
59
        
60
        [System.ServiceModel.OperationContractAttribute(Action="http://PITHOS.Client.Status/IStatusService/GetStatus", ReplyAction="http://PITHOS.Client.Status/IStatusService/GetStatusResponse")]
61
        Pithos.Interfaces.FileOverlayStatus GetStatus(string filePath);
62
        
63
        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://PITHOS.Client.Status/IStatusService/GetStatus", ReplyAction="http://PITHOS.Client.Status/IStatusService/GetStatusResponse")]
64
        System.IAsyncResult BeginGetStatus(string filePath, System.AsyncCallback callback, object asyncState);
65
        
66
        Pithos.Interfaces.FileOverlayStatus EndGetStatus(System.IAsyncResult result);
67
    }
68
    
69
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
70
    public interface IStatusServiceChannel : Pithos.ShellExtensions.PithosService.IStatusService, System.ServiceModel.IClientChannel {
71
    }
72
    
73
    [System.Diagnostics.DebuggerStepThroughAttribute()]
74
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
75
    public partial class GetStatusCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
76
        
77
        private object[] results;
78
        
79
        public GetStatusCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
80
                base(exception, cancelled, userState) {
81
            this.results = results;
82
        }
83
        
84
        public Pithos.Interfaces.FileOverlayStatus Result {
85
            get {
86
                base.RaiseExceptionIfNecessary();
87
                return ((Pithos.Interfaces.FileOverlayStatus)(this.results[0]));
88
            }
89
        }
90
    }
91
    
92
    [System.Diagnostics.DebuggerStepThroughAttribute()]
93
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
94
    public partial class StatusServiceClient : System.ServiceModel.ClientBase<Pithos.ShellExtensions.PithosService.IStatusService>, Pithos.ShellExtensions.PithosService.IStatusService {
95
        
96
        private BeginOperationDelegate onBeginGetStatusDelegate;
97
        
98
        private EndOperationDelegate onEndGetStatusDelegate;
99
        
100
        private System.Threading.SendOrPostCallback onGetStatusCompletedDelegate;
101
        
102
        public StatusServiceClient() {
103
        }
104
        
105
        public StatusServiceClient(string endpointConfigurationName) : 
106
                base(endpointConfigurationName) {
107
        }
108
        
109
        public StatusServiceClient(string endpointConfigurationName, string remoteAddress) : 
110
                base(endpointConfigurationName, remoteAddress) {
111
        }
112
        
113
        public StatusServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
114
                base(endpointConfigurationName, remoteAddress) {
115
        }
116
        
117
        public StatusServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
118
                base(binding, remoteAddress) {
119
        }
120
        
121
        public event System.EventHandler<GetStatusCompletedEventArgs> GetStatusCompleted;
122
        
123
        public Pithos.Interfaces.FileOverlayStatus GetStatus(string filePath) {
124
            return base.Channel.GetStatus(filePath);
125
        }
126
        
127
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
128
        public System.IAsyncResult BeginGetStatus(string filePath, System.AsyncCallback callback, object asyncState) {
129
            return base.Channel.BeginGetStatus(filePath, callback, asyncState);
130
        }
131
        
132
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
133
        public Pithos.Interfaces.FileOverlayStatus EndGetStatus(System.IAsyncResult result) {
134
            return base.Channel.EndGetStatus(result);
135
        }
136
        
137
        private System.IAsyncResult OnBeginGetStatus(object[] inValues, System.AsyncCallback callback, object asyncState) {
138
            string filePath = ((string)(inValues[0]));
139
            return this.BeginGetStatus(filePath, callback, asyncState);
140
        }
141
        
142
        private object[] OnEndGetStatus(System.IAsyncResult result) {
143
            Pithos.Interfaces.FileOverlayStatus retVal = this.EndGetStatus(result);
144
            return new object[] {
145
                    retVal};
146
        }
147
        
148
        private void OnGetStatusCompleted(object state) {
149
            if ((this.GetStatusCompleted != null)) {
150
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
151
                this.GetStatusCompleted(this, new GetStatusCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
152
            }
153
        }
154
        
155
        public void GetStatusAsync(string filePath) {
156
            this.GetStatusAsync(filePath, null);
157
        }
158
        
159
        public void GetStatusAsync(string filePath, object userState) {
160
            if ((this.onBeginGetStatusDelegate == null)) {
161
                this.onBeginGetStatusDelegate = new BeginOperationDelegate(this.OnBeginGetStatus);
162
            }
163
            if ((this.onEndGetStatusDelegate == null)) {
164
                this.onEndGetStatusDelegate = new EndOperationDelegate(this.OnEndGetStatus);
165
            }
166
            if ((this.onGetStatusCompletedDelegate == null)) {
167
                this.onGetStatusCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetStatusCompleted);
168
            }
169
            base.InvokeAsync(this.onBeginGetStatusDelegate, new object[] {
170
                        filePath}, this.onEndGetStatusDelegate, this.onGetStatusCompletedDelegate, userState);
171
        }
172
    }
173
    
174
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
175
    [System.ServiceModel.ServiceContractAttribute(Namespace="http://PITHOS.Client.Settings", ConfigurationName="PithosService.ISettingsService")]
176
    public interface ISettingsService {
177
        
178
        [System.ServiceModel.OperationContractAttribute(Action="http://PITHOS.Client.Settings/ISettingsService/GetSettings", ReplyAction="http://PITHOS.Client.Settings/ISettingsService/GetSettingsResponse")]
179
        Pithos.Interfaces.PithosSettingsData GetSettings();
180
        
181
        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://PITHOS.Client.Settings/ISettingsService/GetSettings", ReplyAction="http://PITHOS.Client.Settings/ISettingsService/GetSettingsResponse")]
182
        System.IAsyncResult BeginGetSettings(System.AsyncCallback callback, object asyncState);
183
        
184
        Pithos.Interfaces.PithosSettingsData EndGetSettings(System.IAsyncResult result);
185
    }
186
    
187
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
188
    public interface ISettingsServiceChannel : Pithos.ShellExtensions.PithosService.ISettingsService, System.ServiceModel.IClientChannel {
189
    }
190
    
191
    [System.Diagnostics.DebuggerStepThroughAttribute()]
192
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
193
    public partial class GetSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
194
        
195
        private object[] results;
196
        
197
        public GetSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
198
                base(exception, cancelled, userState) {
199
            this.results = results;
200
        }
201
        
202
        public Pithos.Interfaces.PithosSettingsData Result {
203
            get {
204
                base.RaiseExceptionIfNecessary();
205
                return ((Pithos.Interfaces.PithosSettingsData)(this.results[0]));
206
            }
207
        }
208
    }
209
    
210
    [System.Diagnostics.DebuggerStepThroughAttribute()]
211
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
212
    public partial class SettingsServiceClient : System.ServiceModel.ClientBase<Pithos.ShellExtensions.PithosService.ISettingsService>, Pithos.ShellExtensions.PithosService.ISettingsService {
213
        
214
        private BeginOperationDelegate onBeginGetSettingsDelegate;
215
        
216
        private EndOperationDelegate onEndGetSettingsDelegate;
217
        
218
        private System.Threading.SendOrPostCallback onGetSettingsCompletedDelegate;
219
        
220
        public SettingsServiceClient() {
221
        }
222
        
223
        public SettingsServiceClient(string endpointConfigurationName) : 
224
                base(endpointConfigurationName) {
225
        }
226
        
227
        public SettingsServiceClient(string endpointConfigurationName, string remoteAddress) : 
228
                base(endpointConfigurationName, remoteAddress) {
229
        }
230
        
231
        public SettingsServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
232
                base(endpointConfigurationName, remoteAddress) {
233
        }
234
        
235
        public SettingsServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
236
                base(binding, remoteAddress) {
237
        }
238
        
239
        public event System.EventHandler<GetSettingsCompletedEventArgs> GetSettingsCompleted;
240
        
241
        public Pithos.Interfaces.PithosSettingsData GetSettings() {
242
            return base.Channel.GetSettings();
243
        }
244
        
245
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
246
        public System.IAsyncResult BeginGetSettings(System.AsyncCallback callback, object asyncState) {
247
            return base.Channel.BeginGetSettings(callback, asyncState);
248
        }
249
        
250
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
251
        public Pithos.Interfaces.PithosSettingsData EndGetSettings(System.IAsyncResult result) {
252
            return base.Channel.EndGetSettings(result);
253
        }
254
        
255
        private System.IAsyncResult OnBeginGetSettings(object[] inValues, System.AsyncCallback callback, object asyncState) {
256
            return this.BeginGetSettings(callback, asyncState);
257
        }
258
        
259
        private object[] OnEndGetSettings(System.IAsyncResult result) {
260
            Pithos.Interfaces.PithosSettingsData retVal = this.EndGetSettings(result);
261
            return new object[] {
262
                    retVal};
263
        }
264
        
265
        private void OnGetSettingsCompleted(object state) {
266
            if ((this.GetSettingsCompleted != null)) {
267
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
268
                this.GetSettingsCompleted(this, new GetSettingsCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
269
            }
270
        }
271
        
272
        public void GetSettingsAsync() {
273
            this.GetSettingsAsync(null);
274
        }
275
        
276
        public void GetSettingsAsync(object userState) {
277
            if ((this.onBeginGetSettingsDelegate == null)) {
278
                this.onBeginGetSettingsDelegate = new BeginOperationDelegate(this.OnBeginGetSettings);
279
            }
280
            if ((this.onEndGetSettingsDelegate == null)) {
281
                this.onEndGetSettingsDelegate = new EndOperationDelegate(this.OnEndGetSettings);
282
            }
283
            if ((this.onGetSettingsCompletedDelegate == null)) {
284
                this.onGetSettingsCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetSettingsCompleted);
285
            }
286
            base.InvokeAsync(this.onBeginGetSettingsDelegate, null, this.onEndGetSettingsDelegate, this.onGetSettingsCompletedDelegate, userState);
287
        }
288
    }
289
    
290
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
291
    [System.ServiceModel.ServiceContractAttribute(Namespace="http://PITHOS.Client.Commands", ConfigurationName="PithosService.ICommandsService")]
292
    public interface ICommandsService {
293
        
294
        [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://PITHOS.Client.Commands/ICommandsService/ShowProperties")]
295
        void ShowProperties(string fileName);
296
        
297
        [System.ServiceModel.OperationContractAttribute(IsOneWay=true, AsyncPattern=true, Action="http://PITHOS.Client.Commands/ICommandsService/ShowProperties")]
298
        System.IAsyncResult BeginShowProperties(string fileName, System.AsyncCallback callback, object asyncState);
299
        
300
        void EndShowProperties(System.IAsyncResult result);
301
        
302
        [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://PITHOS.Client.Commands/ICommandsService/GotoSite")]
303
        void GotoSite(string fileName);
304
        
305
        [System.ServiceModel.OperationContractAttribute(IsOneWay=true, AsyncPattern=true, Action="http://PITHOS.Client.Commands/ICommandsService/GotoSite")]
306
        System.IAsyncResult BeginGotoSite(string fileName, System.AsyncCallback callback, object asyncState);
307
        
308
        void EndGotoSite(System.IAsyncResult result);
309
    }
310
    
311
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
312
    public interface ICommandsServiceChannel : Pithos.ShellExtensions.PithosService.ICommandsService, System.ServiceModel.IClientChannel {
313
    }
314
    
315
    [System.Diagnostics.DebuggerStepThroughAttribute()]
316
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
317
    public partial class CommandsServiceClient : System.ServiceModel.ClientBase<Pithos.ShellExtensions.PithosService.ICommandsService>, Pithos.ShellExtensions.PithosService.ICommandsService {
318
        
319
        private BeginOperationDelegate onBeginShowPropertiesDelegate;
320
        
321
        private EndOperationDelegate onEndShowPropertiesDelegate;
322
        
323
        private System.Threading.SendOrPostCallback onShowPropertiesCompletedDelegate;
324
        
325
        private BeginOperationDelegate onBeginGotoSiteDelegate;
326
        
327
        private EndOperationDelegate onEndGotoSiteDelegate;
328
        
329
        private System.Threading.SendOrPostCallback onGotoSiteCompletedDelegate;
330
        
331
        public CommandsServiceClient() {
332
        }
333
        
334
        public CommandsServiceClient(string endpointConfigurationName) : 
335
                base(endpointConfigurationName) {
336
        }
337
        
338
        public CommandsServiceClient(string endpointConfigurationName, string remoteAddress) : 
339
                base(endpointConfigurationName, remoteAddress) {
340
        }
341
        
342
        public CommandsServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
343
                base(endpointConfigurationName, remoteAddress) {
344
        }
345
        
346
        public CommandsServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
347
                base(binding, remoteAddress) {
348
        }
349
        
350
        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> ShowPropertiesCompleted;
351
        
352
        public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> GotoSiteCompleted;
353
        
354
        public void ShowProperties(string fileName) {
355
            base.Channel.ShowProperties(fileName);
356
        }
357
        
358
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
359
        public System.IAsyncResult BeginShowProperties(string fileName, System.AsyncCallback callback, object asyncState) {
360
            return base.Channel.BeginShowProperties(fileName, callback, asyncState);
361
        }
362
        
363
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
364
        public void EndShowProperties(System.IAsyncResult result) {
365
            base.Channel.EndShowProperties(result);
366
        }
367
        
368
        private System.IAsyncResult OnBeginShowProperties(object[] inValues, System.AsyncCallback callback, object asyncState) {
369
            string fileName = ((string)(inValues[0]));
370
            return this.BeginShowProperties(fileName, callback, asyncState);
371
        }
372
        
373
        private object[] OnEndShowProperties(System.IAsyncResult result) {
374
            this.EndShowProperties(result);
375
            return null;
376
        }
377
        
378
        private void OnShowPropertiesCompleted(object state) {
379
            if ((this.ShowPropertiesCompleted != null)) {
380
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
381
                this.ShowPropertiesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
382
            }
383
        }
384
        
385
        public void ShowPropertiesAsync(string fileName) {
386
            this.ShowPropertiesAsync(fileName, null);
387
        }
388
        
389
        public void ShowPropertiesAsync(string fileName, object userState) {
390
            if ((this.onBeginShowPropertiesDelegate == null)) {
391
                this.onBeginShowPropertiesDelegate = new BeginOperationDelegate(this.OnBeginShowProperties);
392
            }
393
            if ((this.onEndShowPropertiesDelegate == null)) {
394
                this.onEndShowPropertiesDelegate = new EndOperationDelegate(this.OnEndShowProperties);
395
            }
396
            if ((this.onShowPropertiesCompletedDelegate == null)) {
397
                this.onShowPropertiesCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnShowPropertiesCompleted);
398
            }
399
            base.InvokeAsync(this.onBeginShowPropertiesDelegate, new object[] {
400
                        fileName}, this.onEndShowPropertiesDelegate, this.onShowPropertiesCompletedDelegate, userState);
401
        }
402
        
403
        public void GotoSite(string fileName) {
404
            base.Channel.GotoSite(fileName);
405
        }
406
        
407
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
408
        public System.IAsyncResult BeginGotoSite(string fileName, System.AsyncCallback callback, object asyncState) {
409
            return base.Channel.BeginGotoSite(fileName, callback, asyncState);
410
        }
411
        
412
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
413
        public void EndGotoSite(System.IAsyncResult result) {
414
            base.Channel.EndGotoSite(result);
415
        }
416
        
417
        private System.IAsyncResult OnBeginGotoSite(object[] inValues, System.AsyncCallback callback, object asyncState) {
418
            string fileName = ((string)(inValues[0]));
419
            return this.BeginGotoSite(fileName, callback, asyncState);
420
        }
421
        
422
        private object[] OnEndGotoSite(System.IAsyncResult result) {
423
            this.EndGotoSite(result);
424
            return null;
425
        }
426
        
427
        private void OnGotoSiteCompleted(object state) {
428
            if ((this.GotoSiteCompleted != null)) {
429
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
430
                this.GotoSiteCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
431
            }
432
        }
433
        
434
        public void GotoSiteAsync(string fileName) {
435
            this.GotoSiteAsync(fileName, null);
436
        }
437
        
438
        public void GotoSiteAsync(string fileName, object userState) {
439
            if ((this.onBeginGotoSiteDelegate == null)) {
440
                this.onBeginGotoSiteDelegate = new BeginOperationDelegate(this.OnBeginGotoSite);
441
            }
442
            if ((this.onEndGotoSiteDelegate == null)) {
443
                this.onEndGotoSiteDelegate = new EndOperationDelegate(this.OnEndGotoSite);
444
            }
445
            if ((this.onGotoSiteCompletedDelegate == null)) {
446
                this.onGotoSiteCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGotoSiteCompleted);
447
            }
448
            base.InvokeAsync(this.onBeginGotoSiteDelegate, new object[] {
449
                        fileName}, this.onEndGotoSiteDelegate, this.onGotoSiteCompletedDelegate, userState);
450
        }
451
    }
452
}