root / trunk / Pithos.ShellExtensions / Service References / PithosService / Reference.cs @ 255f5f86
History | View | Annotate | Download (22.1 kB)
1 | 255f5f86 | Panagiotis Kanavos | #region |
---|---|---|---|
2 | 255f5f86 | Panagiotis Kanavos | /* ----------------------------------------------------------------------- |
3 | 255f5f86 | Panagiotis Kanavos | * <copyright file="Reference.cs" company="GRNet"> |
4 | 255f5f86 | Panagiotis Kanavos | * |
5 | 255f5f86 | Panagiotis Kanavos | * Copyright 2011-2012 GRNET S.A. All rights reserved. |
6 | 255f5f86 | Panagiotis Kanavos | * |
7 | 255f5f86 | Panagiotis Kanavos | * Redistribution and use in source and binary forms, with or |
8 | 255f5f86 | Panagiotis Kanavos | * without modification, are permitted provided that the following |
9 | 255f5f86 | Panagiotis Kanavos | * conditions are met: |
10 | 255f5f86 | Panagiotis Kanavos | * |
11 | 255f5f86 | Panagiotis Kanavos | * 1. Redistributions of source code must retain the above |
12 | 255f5f86 | Panagiotis Kanavos | * copyright notice, this list of conditions and the following |
13 | 255f5f86 | Panagiotis Kanavos | * disclaimer. |
14 | 255f5f86 | Panagiotis Kanavos | * |
15 | 255f5f86 | Panagiotis Kanavos | * 2. Redistributions in binary form must reproduce the above |
16 | 255f5f86 | Panagiotis Kanavos | * copyright notice, this list of conditions and the following |
17 | 255f5f86 | Panagiotis Kanavos | * disclaimer in the documentation and/or other materials |
18 | 255f5f86 | Panagiotis Kanavos | * provided with the distribution. |
19 | 255f5f86 | Panagiotis Kanavos | * |
20 | 255f5f86 | Panagiotis Kanavos | * |
21 | 255f5f86 | Panagiotis Kanavos | * THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS |
22 | 255f5f86 | Panagiotis Kanavos | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
23 | 255f5f86 | Panagiotis Kanavos | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
24 | 255f5f86 | Panagiotis Kanavos | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR |
25 | 255f5f86 | Panagiotis Kanavos | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
26 | 255f5f86 | Panagiotis Kanavos | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
27 | 255f5f86 | Panagiotis Kanavos | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
28 | 255f5f86 | Panagiotis Kanavos | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
29 | 255f5f86 | Panagiotis Kanavos | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
30 | 255f5f86 | Panagiotis Kanavos | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
31 | 255f5f86 | Panagiotis Kanavos | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
32 | 255f5f86 | Panagiotis Kanavos | * POSSIBILITY OF SUCH DAMAGE. |
33 | 255f5f86 | Panagiotis Kanavos | * |
34 | 255f5f86 | Panagiotis Kanavos | * The views and conclusions contained in the software and |
35 | 255f5f86 | Panagiotis Kanavos | * documentation are those of the authors and should not be |
36 | 255f5f86 | Panagiotis Kanavos | * interpreted as representing official policies, either expressed |
37 | 255f5f86 | Panagiotis Kanavos | * or implied, of GRNET S.A. |
38 | 255f5f86 | Panagiotis Kanavos | * </copyright> |
39 | 255f5f86 | Panagiotis Kanavos | * ----------------------------------------------------------------------- |
40 | 255f5f86 | Panagiotis Kanavos | */ |
41 | 255f5f86 | Panagiotis Kanavos | #endregion |
42 | 255f5f86 | Panagiotis Kanavos | |
43 | 255f5f86 | Panagiotis Kanavos | //------------------------------------------------------------------------------ |
44 | 5bcf6d70 | Panagiotis Kanavos | // <auto-generated> |
45 | 5bcf6d70 | Panagiotis Kanavos | // This code was generated by a tool. |
46 | 42800be8 | Panagiotis Kanavos | // Runtime Version:4.0.30319.488 |
47 | 5bcf6d70 | Panagiotis Kanavos | // |
48 | 5bcf6d70 | Panagiotis Kanavos | // Changes to this file may cause incorrect behavior and will be lost if |
49 | 5bcf6d70 | Panagiotis Kanavos | // the code is regenerated. |
50 | 5bcf6d70 | Panagiotis Kanavos | // </auto-generated> |
51 | 5bcf6d70 | Panagiotis Kanavos | //------------------------------------------------------------------------------ |
52 | 5bcf6d70 | Panagiotis Kanavos | |
53 | 5bcf6d70 | Panagiotis Kanavos | namespace Pithos.ShellExtensions.PithosService { |
54 | 5bcf6d70 | Panagiotis Kanavos | |
55 | 5bcf6d70 | Panagiotis Kanavos | |
56 | 5bcf6d70 | Panagiotis Kanavos | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] |
57 | 5bcf6d70 | Panagiotis Kanavos | [System.ServiceModel.ServiceContractAttribute(Namespace="http://PITHOS.Client.Status", ConfigurationName="PithosService.IStatusService")] |
58 | 5bcf6d70 | Panagiotis Kanavos | public interface IStatusService { |
59 | 5bcf6d70 | Panagiotis Kanavos | |
60 | 5bcf6d70 | Panagiotis Kanavos | [System.ServiceModel.OperationContractAttribute(Action="http://PITHOS.Client.Status/IStatusService/GetStatus", ReplyAction="http://PITHOS.Client.Status/IStatusService/GetStatusResponse")] |
61 | 5bcf6d70 | Panagiotis Kanavos | Pithos.Interfaces.FileOverlayStatus GetStatus(string filePath); |
62 | 5bcf6d70 | Panagiotis Kanavos | |
63 | 5bcf6d70 | Panagiotis Kanavos | [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://PITHOS.Client.Status/IStatusService/GetStatus", ReplyAction="http://PITHOS.Client.Status/IStatusService/GetStatusResponse")] |
64 | 5bcf6d70 | Panagiotis Kanavos | System.IAsyncResult BeginGetStatus(string filePath, System.AsyncCallback callback, object asyncState); |
65 | 5bcf6d70 | Panagiotis Kanavos | |
66 | 5bcf6d70 | Panagiotis Kanavos | Pithos.Interfaces.FileOverlayStatus EndGetStatus(System.IAsyncResult result); |
67 | 5bcf6d70 | Panagiotis Kanavos | } |
68 | 5bcf6d70 | Panagiotis Kanavos | |
69 | 5bcf6d70 | Panagiotis Kanavos | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] |
70 | 5bcf6d70 | Panagiotis Kanavos | public interface IStatusServiceChannel : Pithos.ShellExtensions.PithosService.IStatusService, System.ServiceModel.IClientChannel { |
71 | 5bcf6d70 | Panagiotis Kanavos | } |
72 | 5bcf6d70 | Panagiotis Kanavos | |
73 | 5bcf6d70 | Panagiotis Kanavos | [System.Diagnostics.DebuggerStepThroughAttribute()] |
74 | 5bcf6d70 | Panagiotis Kanavos | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] |
75 | 5bcf6d70 | Panagiotis Kanavos | public partial class GetStatusCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { |
76 | 5bcf6d70 | Panagiotis Kanavos | |
77 | 5bcf6d70 | Panagiotis Kanavos | private object[] results; |
78 | 5bcf6d70 | Panagiotis Kanavos | |
79 | 5bcf6d70 | Panagiotis Kanavos | public GetStatusCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : |
80 | 5bcf6d70 | Panagiotis Kanavos | base(exception, cancelled, userState) { |
81 | 5bcf6d70 | Panagiotis Kanavos | this.results = results; |
82 | 5bcf6d70 | Panagiotis Kanavos | } |
83 | 5bcf6d70 | Panagiotis Kanavos | |
84 | 5bcf6d70 | Panagiotis Kanavos | public Pithos.Interfaces.FileOverlayStatus Result { |
85 | 5bcf6d70 | Panagiotis Kanavos | get { |
86 | 5bcf6d70 | Panagiotis Kanavos | base.RaiseExceptionIfNecessary(); |
87 | 5bcf6d70 | Panagiotis Kanavos | return ((Pithos.Interfaces.FileOverlayStatus)(this.results[0])); |
88 | 5bcf6d70 | Panagiotis Kanavos | } |
89 | 5bcf6d70 | Panagiotis Kanavos | } |
90 | 5bcf6d70 | Panagiotis Kanavos | } |
91 | 5bcf6d70 | Panagiotis Kanavos | |
92 | 5bcf6d70 | Panagiotis Kanavos | [System.Diagnostics.DebuggerStepThroughAttribute()] |
93 | 5bcf6d70 | Panagiotis Kanavos | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] |
94 | 5bcf6d70 | Panagiotis Kanavos | public partial class StatusServiceClient : System.ServiceModel.ClientBase<Pithos.ShellExtensions.PithosService.IStatusService>, Pithos.ShellExtensions.PithosService.IStatusService { |
95 | 5bcf6d70 | Panagiotis Kanavos | |
96 | 5bcf6d70 | Panagiotis Kanavos | private BeginOperationDelegate onBeginGetStatusDelegate; |
97 | 5bcf6d70 | Panagiotis Kanavos | |
98 | 5bcf6d70 | Panagiotis Kanavos | private EndOperationDelegate onEndGetStatusDelegate; |
99 | 5bcf6d70 | Panagiotis Kanavos | |
100 | 5bcf6d70 | Panagiotis Kanavos | private System.Threading.SendOrPostCallback onGetStatusCompletedDelegate; |
101 | 5bcf6d70 | Panagiotis Kanavos | |
102 | 5bcf6d70 | Panagiotis Kanavos | public StatusServiceClient() { |
103 | 5bcf6d70 | Panagiotis Kanavos | } |
104 | 5bcf6d70 | Panagiotis Kanavos | |
105 | 5bcf6d70 | Panagiotis Kanavos | public StatusServiceClient(string endpointConfigurationName) : |
106 | 5bcf6d70 | Panagiotis Kanavos | base(endpointConfigurationName) { |
107 | 5bcf6d70 | Panagiotis Kanavos | } |
108 | 5bcf6d70 | Panagiotis Kanavos | |
109 | 5bcf6d70 | Panagiotis Kanavos | public StatusServiceClient(string endpointConfigurationName, string remoteAddress) : |
110 | 5bcf6d70 | Panagiotis Kanavos | base(endpointConfigurationName, remoteAddress) { |
111 | 5bcf6d70 | Panagiotis Kanavos | } |
112 | 5bcf6d70 | Panagiotis Kanavos | |
113 | 5bcf6d70 | Panagiotis Kanavos | public StatusServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : |
114 | 5bcf6d70 | Panagiotis Kanavos | base(endpointConfigurationName, remoteAddress) { |
115 | 5bcf6d70 | Panagiotis Kanavos | } |
116 | 5bcf6d70 | Panagiotis Kanavos | |
117 | 5bcf6d70 | Panagiotis Kanavos | public StatusServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : |
118 | 5bcf6d70 | Panagiotis Kanavos | base(binding, remoteAddress) { |
119 | 5bcf6d70 | Panagiotis Kanavos | } |
120 | 5bcf6d70 | Panagiotis Kanavos | |
121 | 5bcf6d70 | Panagiotis Kanavos | public event System.EventHandler<GetStatusCompletedEventArgs> GetStatusCompleted; |
122 | 5bcf6d70 | Panagiotis Kanavos | |
123 | 5bcf6d70 | Panagiotis Kanavos | public Pithos.Interfaces.FileOverlayStatus GetStatus(string filePath) { |
124 | 5bcf6d70 | Panagiotis Kanavos | return base.Channel.GetStatus(filePath); |
125 | 5bcf6d70 | Panagiotis Kanavos | } |
126 | 5bcf6d70 | Panagiotis Kanavos | |
127 | 5bcf6d70 | Panagiotis Kanavos | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] |
128 | 5bcf6d70 | Panagiotis Kanavos | public System.IAsyncResult BeginGetStatus(string filePath, System.AsyncCallback callback, object asyncState) { |
129 | 5bcf6d70 | Panagiotis Kanavos | return base.Channel.BeginGetStatus(filePath, callback, asyncState); |
130 | 5bcf6d70 | Panagiotis Kanavos | } |
131 | 5bcf6d70 | Panagiotis Kanavos | |
132 | 5bcf6d70 | Panagiotis Kanavos | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] |
133 | 5bcf6d70 | Panagiotis Kanavos | public Pithos.Interfaces.FileOverlayStatus EndGetStatus(System.IAsyncResult result) { |
134 | 5bcf6d70 | Panagiotis Kanavos | return base.Channel.EndGetStatus(result); |
135 | 5bcf6d70 | Panagiotis Kanavos | } |
136 | 5bcf6d70 | Panagiotis Kanavos | |
137 | 5bcf6d70 | Panagiotis Kanavos | private System.IAsyncResult OnBeginGetStatus(object[] inValues, System.AsyncCallback callback, object asyncState) { |
138 | 5bcf6d70 | Panagiotis Kanavos | string filePath = ((string)(inValues[0])); |
139 | 5bcf6d70 | Panagiotis Kanavos | return this.BeginGetStatus(filePath, callback, asyncState); |
140 | 5bcf6d70 | Panagiotis Kanavos | } |
141 | 5bcf6d70 | Panagiotis Kanavos | |
142 | 5bcf6d70 | Panagiotis Kanavos | private object[] OnEndGetStatus(System.IAsyncResult result) { |
143 | 5bcf6d70 | Panagiotis Kanavos | Pithos.Interfaces.FileOverlayStatus retVal = this.EndGetStatus(result); |
144 | 5bcf6d70 | Panagiotis Kanavos | return new object[] { |
145 | 5bcf6d70 | Panagiotis Kanavos | retVal}; |
146 | 5bcf6d70 | Panagiotis Kanavos | } |
147 | 5bcf6d70 | Panagiotis Kanavos | |
148 | 5bcf6d70 | Panagiotis Kanavos | private void OnGetStatusCompleted(object state) { |
149 | 5bcf6d70 | Panagiotis Kanavos | if ((this.GetStatusCompleted != null)) { |
150 | 5bcf6d70 | Panagiotis Kanavos | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); |
151 | 5bcf6d70 | Panagiotis Kanavos | this.GetStatusCompleted(this, new GetStatusCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState)); |
152 | 5bcf6d70 | Panagiotis Kanavos | } |
153 | 5bcf6d70 | Panagiotis Kanavos | } |
154 | 5bcf6d70 | Panagiotis Kanavos | |
155 | 5bcf6d70 | Panagiotis Kanavos | public void GetStatusAsync(string filePath) { |
156 | 5bcf6d70 | Panagiotis Kanavos | this.GetStatusAsync(filePath, null); |
157 | 5bcf6d70 | Panagiotis Kanavos | } |
158 | 5bcf6d70 | Panagiotis Kanavos | |
159 | 5bcf6d70 | Panagiotis Kanavos | public void GetStatusAsync(string filePath, object userState) { |
160 | 5bcf6d70 | Panagiotis Kanavos | if ((this.onBeginGetStatusDelegate == null)) { |
161 | 5bcf6d70 | Panagiotis Kanavos | this.onBeginGetStatusDelegate = new BeginOperationDelegate(this.OnBeginGetStatus); |
162 | 5bcf6d70 | Panagiotis Kanavos | } |
163 | 5bcf6d70 | Panagiotis Kanavos | if ((this.onEndGetStatusDelegate == null)) { |
164 | 5bcf6d70 | Panagiotis Kanavos | this.onEndGetStatusDelegate = new EndOperationDelegate(this.OnEndGetStatus); |
165 | 5bcf6d70 | Panagiotis Kanavos | } |
166 | 5bcf6d70 | Panagiotis Kanavos | if ((this.onGetStatusCompletedDelegate == null)) { |
167 | 5bcf6d70 | Panagiotis Kanavos | this.onGetStatusCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetStatusCompleted); |
168 | 5bcf6d70 | Panagiotis Kanavos | } |
169 | 5bcf6d70 | Panagiotis Kanavos | base.InvokeAsync(this.onBeginGetStatusDelegate, new object[] { |
170 | 5bcf6d70 | Panagiotis Kanavos | filePath}, this.onEndGetStatusDelegate, this.onGetStatusCompletedDelegate, userState); |
171 | 5bcf6d70 | Panagiotis Kanavos | } |
172 | 5bcf6d70 | Panagiotis Kanavos | } |
173 | 5bcf6d70 | Panagiotis Kanavos | |
174 | 5bcf6d70 | Panagiotis Kanavos | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] |
175 | 5bcf6d70 | Panagiotis Kanavos | [System.ServiceModel.ServiceContractAttribute(Namespace="http://PITHOS.Client.Settings", ConfigurationName="PithosService.ISettingsService")] |
176 | 5bcf6d70 | Panagiotis Kanavos | public interface ISettingsService { |
177 | 5bcf6d70 | Panagiotis Kanavos | |
178 | 5bcf6d70 | Panagiotis Kanavos | [System.ServiceModel.OperationContractAttribute(Action="http://PITHOS.Client.Settings/ISettingsService/GetSettings", ReplyAction="http://PITHOS.Client.Settings/ISettingsService/GetSettingsResponse")] |
179 | 5bcf6d70 | Panagiotis Kanavos | Pithos.Interfaces.PithosSettingsData GetSettings(); |
180 | 5bcf6d70 | Panagiotis Kanavos | |
181 | 5bcf6d70 | Panagiotis Kanavos | [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://PITHOS.Client.Settings/ISettingsService/GetSettings", ReplyAction="http://PITHOS.Client.Settings/ISettingsService/GetSettingsResponse")] |
182 | 5bcf6d70 | Panagiotis Kanavos | System.IAsyncResult BeginGetSettings(System.AsyncCallback callback, object asyncState); |
183 | 5bcf6d70 | Panagiotis Kanavos | |
184 | 5bcf6d70 | Panagiotis Kanavos | Pithos.Interfaces.PithosSettingsData EndGetSettings(System.IAsyncResult result); |
185 | 5bcf6d70 | Panagiotis Kanavos | } |
186 | 5bcf6d70 | Panagiotis Kanavos | |
187 | 5bcf6d70 | Panagiotis Kanavos | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] |
188 | 5bcf6d70 | Panagiotis Kanavos | public interface ISettingsServiceChannel : Pithos.ShellExtensions.PithosService.ISettingsService, System.ServiceModel.IClientChannel { |
189 | 5bcf6d70 | Panagiotis Kanavos | } |
190 | 5bcf6d70 | Panagiotis Kanavos | |
191 | 5bcf6d70 | Panagiotis Kanavos | [System.Diagnostics.DebuggerStepThroughAttribute()] |
192 | 5bcf6d70 | Panagiotis Kanavos | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] |
193 | 5bcf6d70 | Panagiotis Kanavos | public partial class GetSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { |
194 | 5bcf6d70 | Panagiotis Kanavos | |
195 | 5bcf6d70 | Panagiotis Kanavos | private object[] results; |
196 | 5bcf6d70 | Panagiotis Kanavos | |
197 | 5bcf6d70 | Panagiotis Kanavos | public GetSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : |
198 | 5bcf6d70 | Panagiotis Kanavos | base(exception, cancelled, userState) { |
199 | 5bcf6d70 | Panagiotis Kanavos | this.results = results; |
200 | 5bcf6d70 | Panagiotis Kanavos | } |
201 | 5bcf6d70 | Panagiotis Kanavos | |
202 | 5bcf6d70 | Panagiotis Kanavos | public Pithos.Interfaces.PithosSettingsData Result { |
203 | 5bcf6d70 | Panagiotis Kanavos | get { |
204 | 5bcf6d70 | Panagiotis Kanavos | base.RaiseExceptionIfNecessary(); |
205 | 5bcf6d70 | Panagiotis Kanavos | return ((Pithos.Interfaces.PithosSettingsData)(this.results[0])); |
206 | 5bcf6d70 | Panagiotis Kanavos | } |
207 | 5bcf6d70 | Panagiotis Kanavos | } |
208 | 5bcf6d70 | Panagiotis Kanavos | } |
209 | 5bcf6d70 | Panagiotis Kanavos | |
210 | 5bcf6d70 | Panagiotis Kanavos | [System.Diagnostics.DebuggerStepThroughAttribute()] |
211 | 5bcf6d70 | Panagiotis Kanavos | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] |
212 | 5bcf6d70 | Panagiotis Kanavos | public partial class SettingsServiceClient : System.ServiceModel.ClientBase<Pithos.ShellExtensions.PithosService.ISettingsService>, Pithos.ShellExtensions.PithosService.ISettingsService { |
213 | 5bcf6d70 | Panagiotis Kanavos | |
214 | 5bcf6d70 | Panagiotis Kanavos | private BeginOperationDelegate onBeginGetSettingsDelegate; |
215 | 5bcf6d70 | Panagiotis Kanavos | |
216 | 5bcf6d70 | Panagiotis Kanavos | private EndOperationDelegate onEndGetSettingsDelegate; |
217 | 5bcf6d70 | Panagiotis Kanavos | |
218 | 5bcf6d70 | Panagiotis Kanavos | private System.Threading.SendOrPostCallback onGetSettingsCompletedDelegate; |
219 | 5bcf6d70 | Panagiotis Kanavos | |
220 | 5bcf6d70 | Panagiotis Kanavos | public SettingsServiceClient() { |
221 | 5bcf6d70 | Panagiotis Kanavos | } |
222 | 5bcf6d70 | Panagiotis Kanavos | |
223 | 5bcf6d70 | Panagiotis Kanavos | public SettingsServiceClient(string endpointConfigurationName) : |
224 | 5bcf6d70 | Panagiotis Kanavos | base(endpointConfigurationName) { |
225 | 5bcf6d70 | Panagiotis Kanavos | } |
226 | 5bcf6d70 | Panagiotis Kanavos | |
227 | 5bcf6d70 | Panagiotis Kanavos | public SettingsServiceClient(string endpointConfigurationName, string remoteAddress) : |
228 | 5bcf6d70 | Panagiotis Kanavos | base(endpointConfigurationName, remoteAddress) { |
229 | 5bcf6d70 | Panagiotis Kanavos | } |
230 | 5bcf6d70 | Panagiotis Kanavos | |
231 | 5bcf6d70 | Panagiotis Kanavos | public SettingsServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : |
232 | 5bcf6d70 | Panagiotis Kanavos | base(endpointConfigurationName, remoteAddress) { |
233 | 5bcf6d70 | Panagiotis Kanavos | } |
234 | 5bcf6d70 | Panagiotis Kanavos | |
235 | 5bcf6d70 | Panagiotis Kanavos | public SettingsServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : |
236 | 5bcf6d70 | Panagiotis Kanavos | base(binding, remoteAddress) { |
237 | 5bcf6d70 | Panagiotis Kanavos | } |
238 | 5bcf6d70 | Panagiotis Kanavos | |
239 | 5bcf6d70 | Panagiotis Kanavos | public event System.EventHandler<GetSettingsCompletedEventArgs> GetSettingsCompleted; |
240 | 5bcf6d70 | Panagiotis Kanavos | |
241 | 5bcf6d70 | Panagiotis Kanavos | public Pithos.Interfaces.PithosSettingsData GetSettings() { |
242 | 5bcf6d70 | Panagiotis Kanavos | return base.Channel.GetSettings(); |
243 | 5bcf6d70 | Panagiotis Kanavos | } |
244 | 5bcf6d70 | Panagiotis Kanavos | |
245 | 5bcf6d70 | Panagiotis Kanavos | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] |
246 | 5bcf6d70 | Panagiotis Kanavos | public System.IAsyncResult BeginGetSettings(System.AsyncCallback callback, object asyncState) { |
247 | 5bcf6d70 | Panagiotis Kanavos | return base.Channel.BeginGetSettings(callback, asyncState); |
248 | 5bcf6d70 | Panagiotis Kanavos | } |
249 | 5bcf6d70 | Panagiotis Kanavos | |
250 | 5bcf6d70 | Panagiotis Kanavos | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] |
251 | 5bcf6d70 | Panagiotis Kanavos | public Pithos.Interfaces.PithosSettingsData EndGetSettings(System.IAsyncResult result) { |
252 | 5bcf6d70 | Panagiotis Kanavos | return base.Channel.EndGetSettings(result); |
253 | 5bcf6d70 | Panagiotis Kanavos | } |
254 | 5bcf6d70 | Panagiotis Kanavos | |
255 | 5bcf6d70 | Panagiotis Kanavos | private System.IAsyncResult OnBeginGetSettings(object[] inValues, System.AsyncCallback callback, object asyncState) { |
256 | 5bcf6d70 | Panagiotis Kanavos | return this.BeginGetSettings(callback, asyncState); |
257 | 5bcf6d70 | Panagiotis Kanavos | } |
258 | 5bcf6d70 | Panagiotis Kanavos | |
259 | 5bcf6d70 | Panagiotis Kanavos | private object[] OnEndGetSettings(System.IAsyncResult result) { |
260 | 5bcf6d70 | Panagiotis Kanavos | Pithos.Interfaces.PithosSettingsData retVal = this.EndGetSettings(result); |
261 | 5bcf6d70 | Panagiotis Kanavos | return new object[] { |
262 | 5bcf6d70 | Panagiotis Kanavos | retVal}; |
263 | 5bcf6d70 | Panagiotis Kanavos | } |
264 | 5bcf6d70 | Panagiotis Kanavos | |
265 | 5bcf6d70 | Panagiotis Kanavos | private void OnGetSettingsCompleted(object state) { |
266 | 5bcf6d70 | Panagiotis Kanavos | if ((this.GetSettingsCompleted != null)) { |
267 | 5bcf6d70 | Panagiotis Kanavos | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); |
268 | 5bcf6d70 | Panagiotis Kanavos | this.GetSettingsCompleted(this, new GetSettingsCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState)); |
269 | 5bcf6d70 | Panagiotis Kanavos | } |
270 | 5bcf6d70 | Panagiotis Kanavos | } |
271 | 5bcf6d70 | Panagiotis Kanavos | |
272 | 5bcf6d70 | Panagiotis Kanavos | public void GetSettingsAsync() { |
273 | 5bcf6d70 | Panagiotis Kanavos | this.GetSettingsAsync(null); |
274 | 5bcf6d70 | Panagiotis Kanavos | } |
275 | 5bcf6d70 | Panagiotis Kanavos | |
276 | 5bcf6d70 | Panagiotis Kanavos | public void GetSettingsAsync(object userState) { |
277 | 5bcf6d70 | Panagiotis Kanavos | if ((this.onBeginGetSettingsDelegate == null)) { |
278 | 5bcf6d70 | Panagiotis Kanavos | this.onBeginGetSettingsDelegate = new BeginOperationDelegate(this.OnBeginGetSettings); |
279 | 5bcf6d70 | Panagiotis Kanavos | } |
280 | 5bcf6d70 | Panagiotis Kanavos | if ((this.onEndGetSettingsDelegate == null)) { |
281 | 5bcf6d70 | Panagiotis Kanavos | this.onEndGetSettingsDelegate = new EndOperationDelegate(this.OnEndGetSettings); |
282 | 5bcf6d70 | Panagiotis Kanavos | } |
283 | 5bcf6d70 | Panagiotis Kanavos | if ((this.onGetSettingsCompletedDelegate == null)) { |
284 | 5bcf6d70 | Panagiotis Kanavos | this.onGetSettingsCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetSettingsCompleted); |
285 | 5bcf6d70 | Panagiotis Kanavos | } |
286 | 5bcf6d70 | Panagiotis Kanavos | base.InvokeAsync(this.onBeginGetSettingsDelegate, null, this.onEndGetSettingsDelegate, this.onGetSettingsCompletedDelegate, userState); |
287 | 5bcf6d70 | Panagiotis Kanavos | } |
288 | 5bcf6d70 | Panagiotis Kanavos | } |
289 | 42800be8 | Panagiotis Kanavos | |
290 | 42800be8 | Panagiotis Kanavos | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] |
291 | 42800be8 | Panagiotis Kanavos | [System.ServiceModel.ServiceContractAttribute(Namespace="http://PITHOS.Client.Commands", ConfigurationName="PithosService.ICommandsService")] |
292 | 42800be8 | Panagiotis Kanavos | public interface ICommandsService { |
293 | 42800be8 | Panagiotis Kanavos | |
294 | f3d080df | Panagiotis Kanavos | [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://PITHOS.Client.Commands/ICommandsService/ShowProperties")] |
295 | 42800be8 | Panagiotis Kanavos | void ShowProperties(string fileName); |
296 | 42800be8 | Panagiotis Kanavos | |
297 | f3d080df | Panagiotis Kanavos | [System.ServiceModel.OperationContractAttribute(IsOneWay=true, AsyncPattern=true, Action="http://PITHOS.Client.Commands/ICommandsService/ShowProperties")] |
298 | 42800be8 | Panagiotis Kanavos | System.IAsyncResult BeginShowProperties(string fileName, System.AsyncCallback callback, object asyncState); |
299 | 42800be8 | Panagiotis Kanavos | |
300 | 42800be8 | Panagiotis Kanavos | void EndShowProperties(System.IAsyncResult result); |
301 | f3d080df | Panagiotis Kanavos | |
302 | f3d080df | Panagiotis Kanavos | [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://PITHOS.Client.Commands/ICommandsService/GotoSite")] |
303 | f3d080df | Panagiotis Kanavos | void GotoSite(string fileName); |
304 | f3d080df | Panagiotis Kanavos | |
305 | f3d080df | Panagiotis Kanavos | [System.ServiceModel.OperationContractAttribute(IsOneWay=true, AsyncPattern=true, Action="http://PITHOS.Client.Commands/ICommandsService/GotoSite")] |
306 | f3d080df | Panagiotis Kanavos | System.IAsyncResult BeginGotoSite(string fileName, System.AsyncCallback callback, object asyncState); |
307 | f3d080df | Panagiotis Kanavos | |
308 | f3d080df | Panagiotis Kanavos | void EndGotoSite(System.IAsyncResult result); |
309 | 42800be8 | Panagiotis Kanavos | } |
310 | 42800be8 | Panagiotis Kanavos | |
311 | 42800be8 | Panagiotis Kanavos | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] |
312 | 42800be8 | Panagiotis Kanavos | public interface ICommandsServiceChannel : Pithos.ShellExtensions.PithosService.ICommandsService, System.ServiceModel.IClientChannel { |
313 | 42800be8 | Panagiotis Kanavos | } |
314 | 42800be8 | Panagiotis Kanavos | |
315 | 42800be8 | Panagiotis Kanavos | [System.Diagnostics.DebuggerStepThroughAttribute()] |
316 | 42800be8 | Panagiotis Kanavos | [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] |
317 | 42800be8 | Panagiotis Kanavos | public partial class CommandsServiceClient : System.ServiceModel.ClientBase<Pithos.ShellExtensions.PithosService.ICommandsService>, Pithos.ShellExtensions.PithosService.ICommandsService { |
318 | 42800be8 | Panagiotis Kanavos | |
319 | 42800be8 | Panagiotis Kanavos | private BeginOperationDelegate onBeginShowPropertiesDelegate; |
320 | 42800be8 | Panagiotis Kanavos | |
321 | 42800be8 | Panagiotis Kanavos | private EndOperationDelegate onEndShowPropertiesDelegate; |
322 | 42800be8 | Panagiotis Kanavos | |
323 | 42800be8 | Panagiotis Kanavos | private System.Threading.SendOrPostCallback onShowPropertiesCompletedDelegate; |
324 | 42800be8 | Panagiotis Kanavos | |
325 | f3d080df | Panagiotis Kanavos | private BeginOperationDelegate onBeginGotoSiteDelegate; |
326 | f3d080df | Panagiotis Kanavos | |
327 | f3d080df | Panagiotis Kanavos | private EndOperationDelegate onEndGotoSiteDelegate; |
328 | f3d080df | Panagiotis Kanavos | |
329 | f3d080df | Panagiotis Kanavos | private System.Threading.SendOrPostCallback onGotoSiteCompletedDelegate; |
330 | f3d080df | Panagiotis Kanavos | |
331 | 42800be8 | Panagiotis Kanavos | public CommandsServiceClient() { |
332 | 42800be8 | Panagiotis Kanavos | } |
333 | 42800be8 | Panagiotis Kanavos | |
334 | 42800be8 | Panagiotis Kanavos | public CommandsServiceClient(string endpointConfigurationName) : |
335 | 42800be8 | Panagiotis Kanavos | base(endpointConfigurationName) { |
336 | 42800be8 | Panagiotis Kanavos | } |
337 | 42800be8 | Panagiotis Kanavos | |
338 | 42800be8 | Panagiotis Kanavos | public CommandsServiceClient(string endpointConfigurationName, string remoteAddress) : |
339 | 42800be8 | Panagiotis Kanavos | base(endpointConfigurationName, remoteAddress) { |
340 | 42800be8 | Panagiotis Kanavos | } |
341 | 42800be8 | Panagiotis Kanavos | |
342 | 42800be8 | Panagiotis Kanavos | public CommandsServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : |
343 | 42800be8 | Panagiotis Kanavos | base(endpointConfigurationName, remoteAddress) { |
344 | 42800be8 | Panagiotis Kanavos | } |
345 | 42800be8 | Panagiotis Kanavos | |
346 | 42800be8 | Panagiotis Kanavos | public CommandsServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : |
347 | 42800be8 | Panagiotis Kanavos | base(binding, remoteAddress) { |
348 | 42800be8 | Panagiotis Kanavos | } |
349 | 42800be8 | Panagiotis Kanavos | |
350 | 42800be8 | Panagiotis Kanavos | public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> ShowPropertiesCompleted; |
351 | 42800be8 | Panagiotis Kanavos | |
352 | f3d080df | Panagiotis Kanavos | public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> GotoSiteCompleted; |
353 | f3d080df | Panagiotis Kanavos | |
354 | 42800be8 | Panagiotis Kanavos | public void ShowProperties(string fileName) { |
355 | 42800be8 | Panagiotis Kanavos | base.Channel.ShowProperties(fileName); |
356 | 42800be8 | Panagiotis Kanavos | } |
357 | 42800be8 | Panagiotis Kanavos | |
358 | 42800be8 | Panagiotis Kanavos | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] |
359 | 42800be8 | Panagiotis Kanavos | public System.IAsyncResult BeginShowProperties(string fileName, System.AsyncCallback callback, object asyncState) { |
360 | 42800be8 | Panagiotis Kanavos | return base.Channel.BeginShowProperties(fileName, callback, asyncState); |
361 | 42800be8 | Panagiotis Kanavos | } |
362 | 42800be8 | Panagiotis Kanavos | |
363 | 42800be8 | Panagiotis Kanavos | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] |
364 | 42800be8 | Panagiotis Kanavos | public void EndShowProperties(System.IAsyncResult result) { |
365 | 42800be8 | Panagiotis Kanavos | base.Channel.EndShowProperties(result); |
366 | 42800be8 | Panagiotis Kanavos | } |
367 | 42800be8 | Panagiotis Kanavos | |
368 | 42800be8 | Panagiotis Kanavos | private System.IAsyncResult OnBeginShowProperties(object[] inValues, System.AsyncCallback callback, object asyncState) { |
369 | 42800be8 | Panagiotis Kanavos | string fileName = ((string)(inValues[0])); |
370 | 42800be8 | Panagiotis Kanavos | return this.BeginShowProperties(fileName, callback, asyncState); |
371 | 42800be8 | Panagiotis Kanavos | } |
372 | 42800be8 | Panagiotis Kanavos | |
373 | 42800be8 | Panagiotis Kanavos | private object[] OnEndShowProperties(System.IAsyncResult result) { |
374 | 42800be8 | Panagiotis Kanavos | this.EndShowProperties(result); |
375 | 42800be8 | Panagiotis Kanavos | return null; |
376 | 42800be8 | Panagiotis Kanavos | } |
377 | 42800be8 | Panagiotis Kanavos | |
378 | 42800be8 | Panagiotis Kanavos | private void OnShowPropertiesCompleted(object state) { |
379 | 42800be8 | Panagiotis Kanavos | if ((this.ShowPropertiesCompleted != null)) { |
380 | 42800be8 | Panagiotis Kanavos | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); |
381 | 42800be8 | Panagiotis Kanavos | this.ShowPropertiesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); |
382 | 42800be8 | Panagiotis Kanavos | } |
383 | 42800be8 | Panagiotis Kanavos | } |
384 | 42800be8 | Panagiotis Kanavos | |
385 | 42800be8 | Panagiotis Kanavos | public void ShowPropertiesAsync(string fileName) { |
386 | 42800be8 | Panagiotis Kanavos | this.ShowPropertiesAsync(fileName, null); |
387 | 42800be8 | Panagiotis Kanavos | } |
388 | 42800be8 | Panagiotis Kanavos | |
389 | 42800be8 | Panagiotis Kanavos | public void ShowPropertiesAsync(string fileName, object userState) { |
390 | 42800be8 | Panagiotis Kanavos | if ((this.onBeginShowPropertiesDelegate == null)) { |
391 | 42800be8 | Panagiotis Kanavos | this.onBeginShowPropertiesDelegate = new BeginOperationDelegate(this.OnBeginShowProperties); |
392 | 42800be8 | Panagiotis Kanavos | } |
393 | 42800be8 | Panagiotis Kanavos | if ((this.onEndShowPropertiesDelegate == null)) { |
394 | 42800be8 | Panagiotis Kanavos | this.onEndShowPropertiesDelegate = new EndOperationDelegate(this.OnEndShowProperties); |
395 | 42800be8 | Panagiotis Kanavos | } |
396 | 42800be8 | Panagiotis Kanavos | if ((this.onShowPropertiesCompletedDelegate == null)) { |
397 | 42800be8 | Panagiotis Kanavos | this.onShowPropertiesCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnShowPropertiesCompleted); |
398 | 42800be8 | Panagiotis Kanavos | } |
399 | 42800be8 | Panagiotis Kanavos | base.InvokeAsync(this.onBeginShowPropertiesDelegate, new object[] { |
400 | 42800be8 | Panagiotis Kanavos | fileName}, this.onEndShowPropertiesDelegate, this.onShowPropertiesCompletedDelegate, userState); |
401 | 42800be8 | Panagiotis Kanavos | } |
402 | f3d080df | Panagiotis Kanavos | |
403 | f3d080df | Panagiotis Kanavos | public void GotoSite(string fileName) { |
404 | f3d080df | Panagiotis Kanavos | base.Channel.GotoSite(fileName); |
405 | f3d080df | Panagiotis Kanavos | } |
406 | f3d080df | Panagiotis Kanavos | |
407 | f3d080df | Panagiotis Kanavos | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] |
408 | f3d080df | Panagiotis Kanavos | public System.IAsyncResult BeginGotoSite(string fileName, System.AsyncCallback callback, object asyncState) { |
409 | f3d080df | Panagiotis Kanavos | return base.Channel.BeginGotoSite(fileName, callback, asyncState); |
410 | f3d080df | Panagiotis Kanavos | } |
411 | f3d080df | Panagiotis Kanavos | |
412 | f3d080df | Panagiotis Kanavos | [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] |
413 | f3d080df | Panagiotis Kanavos | public void EndGotoSite(System.IAsyncResult result) { |
414 | f3d080df | Panagiotis Kanavos | base.Channel.EndGotoSite(result); |
415 | f3d080df | Panagiotis Kanavos | } |
416 | f3d080df | Panagiotis Kanavos | |
417 | f3d080df | Panagiotis Kanavos | private System.IAsyncResult OnBeginGotoSite(object[] inValues, System.AsyncCallback callback, object asyncState) { |
418 | f3d080df | Panagiotis Kanavos | string fileName = ((string)(inValues[0])); |
419 | f3d080df | Panagiotis Kanavos | return this.BeginGotoSite(fileName, callback, asyncState); |
420 | f3d080df | Panagiotis Kanavos | } |
421 | f3d080df | Panagiotis Kanavos | |
422 | f3d080df | Panagiotis Kanavos | private object[] OnEndGotoSite(System.IAsyncResult result) { |
423 | f3d080df | Panagiotis Kanavos | this.EndGotoSite(result); |
424 | f3d080df | Panagiotis Kanavos | return null; |
425 | f3d080df | Panagiotis Kanavos | } |
426 | f3d080df | Panagiotis Kanavos | |
427 | f3d080df | Panagiotis Kanavos | private void OnGotoSiteCompleted(object state) { |
428 | f3d080df | Panagiotis Kanavos | if ((this.GotoSiteCompleted != null)) { |
429 | f3d080df | Panagiotis Kanavos | InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); |
430 | f3d080df | Panagiotis Kanavos | this.GotoSiteCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); |
431 | f3d080df | Panagiotis Kanavos | } |
432 | f3d080df | Panagiotis Kanavos | } |
433 | f3d080df | Panagiotis Kanavos | |
434 | f3d080df | Panagiotis Kanavos | public void GotoSiteAsync(string fileName) { |
435 | f3d080df | Panagiotis Kanavos | this.GotoSiteAsync(fileName, null); |
436 | f3d080df | Panagiotis Kanavos | } |
437 | f3d080df | Panagiotis Kanavos | |
438 | f3d080df | Panagiotis Kanavos | public void GotoSiteAsync(string fileName, object userState) { |
439 | f3d080df | Panagiotis Kanavos | if ((this.onBeginGotoSiteDelegate == null)) { |
440 | f3d080df | Panagiotis Kanavos | this.onBeginGotoSiteDelegate = new BeginOperationDelegate(this.OnBeginGotoSite); |
441 | f3d080df | Panagiotis Kanavos | } |
442 | f3d080df | Panagiotis Kanavos | if ((this.onEndGotoSiteDelegate == null)) { |
443 | f3d080df | Panagiotis Kanavos | this.onEndGotoSiteDelegate = new EndOperationDelegate(this.OnEndGotoSite); |
444 | f3d080df | Panagiotis Kanavos | } |
445 | f3d080df | Panagiotis Kanavos | if ((this.onGotoSiteCompletedDelegate == null)) { |
446 | f3d080df | Panagiotis Kanavos | this.onGotoSiteCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGotoSiteCompleted); |
447 | f3d080df | Panagiotis Kanavos | } |
448 | f3d080df | Panagiotis Kanavos | base.InvokeAsync(this.onBeginGotoSiteDelegate, new object[] { |
449 | f3d080df | Panagiotis Kanavos | fileName}, this.onEndGotoSiteDelegate, this.onGotoSiteCompletedDelegate, userState); |
450 | f3d080df | Panagiotis Kanavos | } |
451 | 42800be8 | Panagiotis Kanavos | } |
452 | 5bcf6d70 | Panagiotis Kanavos | } |