Statistics
| Branch: | Revision:

root / trunk / Pithos.ShellExtensions / Service References / PithosService / Reference.cs @ 5bcf6d70

History | View | Annotate | Download (12.1 kB)

1
//------------------------------------------------------------------------------
2
// <auto-generated>
3
//     This code was generated by a tool.
4
//     Runtime Version:4.0.30319.235
5
//
6
//     Changes to this file may cause incorrect behavior and will be lost if
7
//     the code is regenerated.
8
// </auto-generated>
9
//------------------------------------------------------------------------------
10

    
11
namespace Pithos.ShellExtensions.PithosService {
12
    
13
    
14
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
15
    [System.ServiceModel.ServiceContractAttribute(Namespace="http://PITHOS.Client.Status", ConfigurationName="PithosService.IStatusService")]
16
    public interface IStatusService {
17
        
18
        [System.ServiceModel.OperationContractAttribute(Action="http://PITHOS.Client.Status/IStatusService/GetStatus", ReplyAction="http://PITHOS.Client.Status/IStatusService/GetStatusResponse")]
19
        Pithos.Interfaces.FileOverlayStatus GetStatus(string filePath);
20
        
21
        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://PITHOS.Client.Status/IStatusService/GetStatus", ReplyAction="http://PITHOS.Client.Status/IStatusService/GetStatusResponse")]
22
        System.IAsyncResult BeginGetStatus(string filePath, System.AsyncCallback callback, object asyncState);
23
        
24
        Pithos.Interfaces.FileOverlayStatus EndGetStatus(System.IAsyncResult result);
25
    }
26
    
27
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
28
    public interface IStatusServiceChannel : Pithos.ShellExtensions.PithosService.IStatusService, System.ServiceModel.IClientChannel {
29
    }
30
    
31
    [System.Diagnostics.DebuggerStepThroughAttribute()]
32
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
33
    public partial class GetStatusCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
34
        
35
        private object[] results;
36
        
37
        public GetStatusCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
38
                base(exception, cancelled, userState) {
39
            this.results = results;
40
        }
41
        
42
        public Pithos.Interfaces.FileOverlayStatus Result {
43
            get {
44
                base.RaiseExceptionIfNecessary();
45
                return ((Pithos.Interfaces.FileOverlayStatus)(this.results[0]));
46
            }
47
        }
48
    }
49
    
50
    [System.Diagnostics.DebuggerStepThroughAttribute()]
51
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
52
    public partial class StatusServiceClient : System.ServiceModel.ClientBase<Pithos.ShellExtensions.PithosService.IStatusService>, Pithos.ShellExtensions.PithosService.IStatusService {
53
        
54
        private BeginOperationDelegate onBeginGetStatusDelegate;
55
        
56
        private EndOperationDelegate onEndGetStatusDelegate;
57
        
58
        private System.Threading.SendOrPostCallback onGetStatusCompletedDelegate;
59
        
60
        public StatusServiceClient() {
61
        }
62
        
63
        public StatusServiceClient(string endpointConfigurationName) : 
64
                base(endpointConfigurationName) {
65
        }
66
        
67
        public StatusServiceClient(string endpointConfigurationName, string remoteAddress) : 
68
                base(endpointConfigurationName, remoteAddress) {
69
        }
70
        
71
        public StatusServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
72
                base(endpointConfigurationName, remoteAddress) {
73
        }
74
        
75
        public StatusServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
76
                base(binding, remoteAddress) {
77
        }
78
        
79
        public event System.EventHandler<GetStatusCompletedEventArgs> GetStatusCompleted;
80
        
81
        public Pithos.Interfaces.FileOverlayStatus GetStatus(string filePath) {
82
            return base.Channel.GetStatus(filePath);
83
        }
84
        
85
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
86
        public System.IAsyncResult BeginGetStatus(string filePath, System.AsyncCallback callback, object asyncState) {
87
            return base.Channel.BeginGetStatus(filePath, callback, asyncState);
88
        }
89
        
90
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
91
        public Pithos.Interfaces.FileOverlayStatus EndGetStatus(System.IAsyncResult result) {
92
            return base.Channel.EndGetStatus(result);
93
        }
94
        
95
        private System.IAsyncResult OnBeginGetStatus(object[] inValues, System.AsyncCallback callback, object asyncState) {
96
            string filePath = ((string)(inValues[0]));
97
            return this.BeginGetStatus(filePath, callback, asyncState);
98
        }
99
        
100
        private object[] OnEndGetStatus(System.IAsyncResult result) {
101
            Pithos.Interfaces.FileOverlayStatus retVal = this.EndGetStatus(result);
102
            return new object[] {
103
                    retVal};
104
        }
105
        
106
        private void OnGetStatusCompleted(object state) {
107
            if ((this.GetStatusCompleted != null)) {
108
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
109
                this.GetStatusCompleted(this, new GetStatusCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
110
            }
111
        }
112
        
113
        public void GetStatusAsync(string filePath) {
114
            this.GetStatusAsync(filePath, null);
115
        }
116
        
117
        public void GetStatusAsync(string filePath, object userState) {
118
            if ((this.onBeginGetStatusDelegate == null)) {
119
                this.onBeginGetStatusDelegate = new BeginOperationDelegate(this.OnBeginGetStatus);
120
            }
121
            if ((this.onEndGetStatusDelegate == null)) {
122
                this.onEndGetStatusDelegate = new EndOperationDelegate(this.OnEndGetStatus);
123
            }
124
            if ((this.onGetStatusCompletedDelegate == null)) {
125
                this.onGetStatusCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetStatusCompleted);
126
            }
127
            base.InvokeAsync(this.onBeginGetStatusDelegate, new object[] {
128
                        filePath}, this.onEndGetStatusDelegate, this.onGetStatusCompletedDelegate, userState);
129
        }
130
    }
131
    
132
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
133
    [System.ServiceModel.ServiceContractAttribute(Namespace="http://PITHOS.Client.Settings", ConfigurationName="PithosService.ISettingsService")]
134
    public interface ISettingsService {
135
        
136
        [System.ServiceModel.OperationContractAttribute(Action="http://PITHOS.Client.Settings/ISettingsService/GetSettings", ReplyAction="http://PITHOS.Client.Settings/ISettingsService/GetSettingsResponse")]
137
        Pithos.Interfaces.PithosSettingsData GetSettings();
138
        
139
        [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://PITHOS.Client.Settings/ISettingsService/GetSettings", ReplyAction="http://PITHOS.Client.Settings/ISettingsService/GetSettingsResponse")]
140
        System.IAsyncResult BeginGetSettings(System.AsyncCallback callback, object asyncState);
141
        
142
        Pithos.Interfaces.PithosSettingsData EndGetSettings(System.IAsyncResult result);
143
    }
144
    
145
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
146
    public interface ISettingsServiceChannel : Pithos.ShellExtensions.PithosService.ISettingsService, System.ServiceModel.IClientChannel {
147
    }
148
    
149
    [System.Diagnostics.DebuggerStepThroughAttribute()]
150
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
151
    public partial class GetSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
152
        
153
        private object[] results;
154
        
155
        public GetSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
156
                base(exception, cancelled, userState) {
157
            this.results = results;
158
        }
159
        
160
        public Pithos.Interfaces.PithosSettingsData Result {
161
            get {
162
                base.RaiseExceptionIfNecessary();
163
                return ((Pithos.Interfaces.PithosSettingsData)(this.results[0]));
164
            }
165
        }
166
    }
167
    
168
    [System.Diagnostics.DebuggerStepThroughAttribute()]
169
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
170
    public partial class SettingsServiceClient : System.ServiceModel.ClientBase<Pithos.ShellExtensions.PithosService.ISettingsService>, Pithos.ShellExtensions.PithosService.ISettingsService {
171
        
172
        private BeginOperationDelegate onBeginGetSettingsDelegate;
173
        
174
        private EndOperationDelegate onEndGetSettingsDelegate;
175
        
176
        private System.Threading.SendOrPostCallback onGetSettingsCompletedDelegate;
177
        
178
        public SettingsServiceClient() {
179
        }
180
        
181
        public SettingsServiceClient(string endpointConfigurationName) : 
182
                base(endpointConfigurationName) {
183
        }
184
        
185
        public SettingsServiceClient(string endpointConfigurationName, string remoteAddress) : 
186
                base(endpointConfigurationName, remoteAddress) {
187
        }
188
        
189
        public SettingsServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
190
                base(endpointConfigurationName, remoteAddress) {
191
        }
192
        
193
        public SettingsServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
194
                base(binding, remoteAddress) {
195
        }
196
        
197
        public event System.EventHandler<GetSettingsCompletedEventArgs> GetSettingsCompleted;
198
        
199
        public Pithos.Interfaces.PithosSettingsData GetSettings() {
200
            return base.Channel.GetSettings();
201
        }
202
        
203
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
204
        public System.IAsyncResult BeginGetSettings(System.AsyncCallback callback, object asyncState) {
205
            return base.Channel.BeginGetSettings(callback, asyncState);
206
        }
207
        
208
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
209
        public Pithos.Interfaces.PithosSettingsData EndGetSettings(System.IAsyncResult result) {
210
            return base.Channel.EndGetSettings(result);
211
        }
212
        
213
        private System.IAsyncResult OnBeginGetSettings(object[] inValues, System.AsyncCallback callback, object asyncState) {
214
            return this.BeginGetSettings(callback, asyncState);
215
        }
216
        
217
        private object[] OnEndGetSettings(System.IAsyncResult result) {
218
            Pithos.Interfaces.PithosSettingsData retVal = this.EndGetSettings(result);
219
            return new object[] {
220
                    retVal};
221
        }
222
        
223
        private void OnGetSettingsCompleted(object state) {
224
            if ((this.GetSettingsCompleted != null)) {
225
                InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
226
                this.GetSettingsCompleted(this, new GetSettingsCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
227
            }
228
        }
229
        
230
        public void GetSettingsAsync() {
231
            this.GetSettingsAsync(null);
232
        }
233
        
234
        public void GetSettingsAsync(object userState) {
235
            if ((this.onBeginGetSettingsDelegate == null)) {
236
                this.onBeginGetSettingsDelegate = new BeginOperationDelegate(this.OnBeginGetSettings);
237
            }
238
            if ((this.onEndGetSettingsDelegate == null)) {
239
                this.onEndGetSettingsDelegate = new EndOperationDelegate(this.OnEndGetSettings);
240
            }
241
            if ((this.onGetSettingsCompletedDelegate == null)) {
242
                this.onGetSettingsCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetSettingsCompleted);
243
            }
244
            base.InvokeAsync(this.onBeginGetSettingsDelegate, null, this.onEndGetSettingsDelegate, this.onGetSettingsCompletedDelegate, userState);
245
        }
246
    }
247
}