59
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
1 //------------------------------------------------------------------------------
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
2 // <auto-generated>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
3 // This code was generated by a tool.
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
4 // Runtime Version:4.0.30319.17379
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
5 //
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
6 // Changes to this file may cause incorrect behavior and will be lost if
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
7 // the code is regenerated.
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
8 // </auto-generated>
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
9 //------------------------------------------------------------------------------
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
10
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
11 //
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
12 // This code was auto-generated by SlSvcUtil, version 5.0.61118.0
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
13 //
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
14
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
15
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
16 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
17 [System.ServiceModel.ServiceContractAttribute(Namespace="", ConfigurationName="ClientDataService")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
18 public interface ClientDataService
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
19 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
20
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
21 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="urn:ClientDataService/Get", ReplyAction="urn:ClientDataService/GetResponse")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
22 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.ObjectModel.ObservableCollection<object>))]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
23 System.IAsyncResult BeginGet(int id, System.AsyncCallback callback, object asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
24
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
25 object EndGet(System.IAsyncResult result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
26
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
27 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="urn:ClientDataService/GetAll", ReplyAction="urn:ClientDataService/GetAllResponse")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
28 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.ObjectModel.ObservableCollection<object>))]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
29 System.IAsyncResult BeginGetAll(System.AsyncCallback callback, object asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
30
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
31 System.Collections.ObjectModel.ObservableCollection<object> EndGetAll(System.IAsyncResult result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
32
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
33 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="urn:ClientDataService/Insert", ReplyAction="urn:ClientDataService/InsertResponse")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
34 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.ObjectModel.ObservableCollection<object>))]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
35 System.IAsyncResult BeginInsert(object item, System.AsyncCallback callback, object asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
36
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
37 void EndInsert(System.IAsyncResult result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
38
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
39 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="urn:ClientDataService/Update", ReplyAction="urn:ClientDataService/UpdateResponse")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
40 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.ObjectModel.ObservableCollection<object>))]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
41 System.IAsyncResult BeginUpdate(object item, System.AsyncCallback callback, object asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
42
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
43 void EndUpdate(System.IAsyncResult result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
44
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
45 [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="urn:ClientDataService/Delete", ReplyAction="urn:ClientDataService/DeleteResponse")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
46 [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.ObjectModel.ObservableCollection<object>))]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
47 System.IAsyncResult BeginDelete(object item, System.AsyncCallback callback, object asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
48
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
49 void EndDelete(System.IAsyncResult result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
50 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
51
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
52 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
53 public interface ClientDataServiceChannel : ClientDataService, System.ServiceModel.IClientChannel
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
54 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
55 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
56
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
57 [System.Diagnostics.DebuggerStepThroughAttribute()]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
58 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
59 public partial class GetCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
60 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
61
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
62 private object[] results;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
63
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
64 public GetCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
65 base(exception, cancelled, userState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
66 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
67 this.results = results;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
68 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
69
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
70 public object Result
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
71 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
72 get
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
73 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
74 base.RaiseExceptionIfNecessary();
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
75 return ((object)(this.results[0]));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
76 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
77 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
78 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
79
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
80 [System.Diagnostics.DebuggerStepThroughAttribute()]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
81 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
82 public partial class GetAllCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
83 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
84
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
85 private object[] results;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
86
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
87 public GetAllCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
88 base(exception, cancelled, userState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
89 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
90 this.results = results;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
91 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
92
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
93 public System.Collections.ObjectModel.ObservableCollection<object> Result
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
94 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
95 get
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
96 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
97 base.RaiseExceptionIfNecessary();
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
98 return ((System.Collections.ObjectModel.ObservableCollection<object>)(this.results[0]));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
99 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
100 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
101 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
102
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
103 [System.Diagnostics.DebuggerStepThroughAttribute()]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
104 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
105 public partial class ClientDataServiceClient : System.ServiceModel.ClientBase<ClientDataService>, ClientDataService, IClientDataServiceClient
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
106 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
107
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
108 private BeginOperationDelegate onBeginGetDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
109
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
110 private EndOperationDelegate onEndGetDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
111
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
112 private System.Threading.SendOrPostCallback onGetCompletedDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
113
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
114 private BeginOperationDelegate onBeginGetAllDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
115
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
116 private EndOperationDelegate onEndGetAllDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
117
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
118 private System.Threading.SendOrPostCallback onGetAllCompletedDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
119
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
120 private BeginOperationDelegate onBeginInsertDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
121
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
122 private EndOperationDelegate onEndInsertDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
123
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
124 private System.Threading.SendOrPostCallback onInsertCompletedDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
125
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
126 private BeginOperationDelegate onBeginUpdateDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
127
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
128 private EndOperationDelegate onEndUpdateDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
129
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
130 private System.Threading.SendOrPostCallback onUpdateCompletedDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
131
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
132 private BeginOperationDelegate onBeginDeleteDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
133
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
134 private EndOperationDelegate onEndDeleteDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
135
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
136 private System.Threading.SendOrPostCallback onDeleteCompletedDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
137
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
138 private BeginOperationDelegate onBeginOpenDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
139
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
140 private EndOperationDelegate onEndOpenDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
141
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
142 private System.Threading.SendOrPostCallback onOpenCompletedDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
143
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
144 private BeginOperationDelegate onBeginCloseDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
145
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
146 private EndOperationDelegate onEndCloseDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
147
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
148 private System.Threading.SendOrPostCallback onCloseCompletedDelegate;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
149
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
150 public ClientDataServiceClient()
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
151 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
152 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
153
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
154 public ClientDataServiceClient(string endpointConfigurationName) :
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
155 base(endpointConfigurationName)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
156 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
157 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
158
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
159 public ClientDataServiceClient(string endpointConfigurationName, string remoteAddress) :
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
160 base(endpointConfigurationName, remoteAddress)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
161 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
162 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
163
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
164 public ClientDataServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
165 base(endpointConfigurationName, remoteAddress)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
166 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
167 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
168
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
169 public ClientDataServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
170 base(binding, remoteAddress)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
171 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
172 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
173
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
174 public System.Net.CookieContainer CookieContainer
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
175 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
176 get
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
177 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
178 System.ServiceModel.Channels.IHttpCookieContainerManager httpCookieContainerManager = this.InnerChannel.GetProperty<System.ServiceModel.Channels.IHttpCookieContainerManager>();
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
179 if ((httpCookieContainerManager != null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
180 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
181 return httpCookieContainerManager.CookieContainer;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
182 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
183 else
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
184 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
185 return null;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
186 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
187 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
188 set
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
189 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
190 System.ServiceModel.Channels.IHttpCookieContainerManager httpCookieContainerManager = this.InnerChannel.GetProperty<System.ServiceModel.Channels.IHttpCookieContainerManager>();
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
191 if ((httpCookieContainerManager != null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
192 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
193 httpCookieContainerManager.CookieContainer = value;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
194 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
195 else
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
196 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
197 throw new System.InvalidOperationException("Unable to set the CookieContainer. Please make sure the binding contains an HttpC" +
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
198 "ookieContainerBindingElement.");
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
199 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
200 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
201 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
202
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
203 public event System.EventHandler<GetCompletedEventArgs> GetCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
204
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
205 public event System.EventHandler<GetAllCompletedEventArgs> GetAllCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
206
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
207 public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> InsertCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
208
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
209 public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> UpdateCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
210
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
211 public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> DeleteCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
212
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
213 public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> OpenCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
214
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
215 public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> CloseCompleted;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
216
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
217 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
218 System.IAsyncResult ClientDataService.BeginGet(int id, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
219 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
220 return base.Channel.BeginGet(id, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
221 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
222
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
223 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
224 object ClientDataService.EndGet(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
225 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
226 return base.Channel.EndGet(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
227 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
228
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
229 private System.IAsyncResult OnBeginGet(object[] inValues, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
230 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
231 int id = ((int)(inValues[0]));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
232 return ((ClientDataService)(this)).BeginGet(id, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
233 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
234
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
235 private object[] OnEndGet(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
236 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
237 object retVal = ((ClientDataService)(this)).EndGet(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
238 return new object[] {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
239 retVal};
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
240 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
241
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
242 private void OnGetCompleted(object state)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
243 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
244 if ((this.GetCompleted != null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
245 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
246 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
247 this.GetCompleted(this, new GetCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
248 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
249 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
250
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
251 public void GetAsync(int id)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
252 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
253 this.GetAsync(id, null);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
254 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
255
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
256 public void GetAsync(int id, object userState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
257 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
258 if ((this.onBeginGetDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
259 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
260 this.onBeginGetDelegate = new BeginOperationDelegate(this.OnBeginGet);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
261 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
262 if ((this.onEndGetDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
263 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
264 this.onEndGetDelegate = new EndOperationDelegate(this.OnEndGet);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
265 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
266 if ((this.onGetCompletedDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
267 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
268 this.onGetCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetCompleted);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
269 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
270 base.InvokeAsync(this.onBeginGetDelegate, new object[] {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
271 id}, this.onEndGetDelegate, this.onGetCompletedDelegate, userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
272 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
273
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
274 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
275 System.IAsyncResult ClientDataService.BeginGetAll(System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
276 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
277 return base.Channel.BeginGetAll(callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
278 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
279
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
280 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
281 System.Collections.ObjectModel.ObservableCollection<object> ClientDataService.EndGetAll(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
282 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
283 return base.Channel.EndGetAll(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
284 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
285
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
286 private System.IAsyncResult OnBeginGetAll(object[] inValues, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
287 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
288 return ((ClientDataService)(this)).BeginGetAll(callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
289 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
290
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
291 private object[] OnEndGetAll(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
292 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
293 System.Collections.ObjectModel.ObservableCollection<object> retVal = ((ClientDataService)(this)).EndGetAll(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
294 return new object[] {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
295 retVal};
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
296 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
297
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
298 private void OnGetAllCompleted(object state)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
299 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
300 if ((this.GetAllCompleted != null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
301 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
302 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
303 this.GetAllCompleted(this, new GetAllCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
304 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
305 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
306
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
307 public void GetAllAsync()
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
308 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
309 this.GetAllAsync(null);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
310 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
311
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
312 public void GetAllAsync(object userState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
313 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
314 if ((this.onBeginGetAllDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
315 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
316 this.onBeginGetAllDelegate = new BeginOperationDelegate(this.OnBeginGetAll);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
317 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
318 if ((this.onEndGetAllDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
319 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
320 this.onEndGetAllDelegate = new EndOperationDelegate(this.OnEndGetAll);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
321 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
322 if ((this.onGetAllCompletedDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
323 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
324 this.onGetAllCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetAllCompleted);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
325 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
326 base.InvokeAsync(this.onBeginGetAllDelegate, null, this.onEndGetAllDelegate, this.onGetAllCompletedDelegate, userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
327 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
328
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
329 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
330 System.IAsyncResult ClientDataService.BeginInsert(object item, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
331 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
332 return base.Channel.BeginInsert(item, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
333 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
334
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
335 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
336 void ClientDataService.EndInsert(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
337 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
338 base.Channel.EndInsert(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
339 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
340
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
341 private System.IAsyncResult OnBeginInsert(object[] inValues, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
342 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
343 object item = ((object)(inValues[0]));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
344 return ((ClientDataService)(this)).BeginInsert(item, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
345 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
346
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
347 private object[] OnEndInsert(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
348 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
349 ((ClientDataService)(this)).EndInsert(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
350 return null;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
351 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
352
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
353 private void OnInsertCompleted(object state)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
354 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
355 if ((this.InsertCompleted != null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
356 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
357 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
358 this.InsertCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
359 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
360 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
361
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
362 public void InsertAsync(object item)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
363 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
364 this.InsertAsync(item, null);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
365 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
366
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
367 public void InsertAsync(object item, object userState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
368 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
369 if ((this.onBeginInsertDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
370 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
371 this.onBeginInsertDelegate = new BeginOperationDelegate(this.OnBeginInsert);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
372 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
373 if ((this.onEndInsertDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
374 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
375 this.onEndInsertDelegate = new EndOperationDelegate(this.OnEndInsert);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
376 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
377 if ((this.onInsertCompletedDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
378 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
379 this.onInsertCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnInsertCompleted);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
380 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
381 base.InvokeAsync(this.onBeginInsertDelegate, new object[] {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
382 item}, this.onEndInsertDelegate, this.onInsertCompletedDelegate, userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
383 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
384
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
385 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
386 System.IAsyncResult ClientDataService.BeginUpdate(object item, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
387 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
388 return base.Channel.BeginUpdate(item, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
389 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
390
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
391 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
392 void ClientDataService.EndUpdate(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
393 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
394 base.Channel.EndUpdate(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
395 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
396
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
397 private System.IAsyncResult OnBeginUpdate(object[] inValues, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
398 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
399 object item = ((object)(inValues[0]));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
400 return ((ClientDataService)(this)).BeginUpdate(item, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
401 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
402
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
403 private object[] OnEndUpdate(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
404 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
405 ((ClientDataService)(this)).EndUpdate(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
406 return null;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
407 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
408
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
409 private void OnUpdateCompleted(object state)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
410 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
411 if ((this.UpdateCompleted != null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
412 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
413 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
414 this.UpdateCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
415 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
416 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
417
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
418 public void UpdateAsync(object item)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
419 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
420 this.UpdateAsync(item, null);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
421 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
422
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
423 public void UpdateAsync(object item, object userState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
424 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
425 if ((this.onBeginUpdateDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
426 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
427 this.onBeginUpdateDelegate = new BeginOperationDelegate(this.OnBeginUpdate);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
428 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
429 if ((this.onEndUpdateDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
430 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
431 this.onEndUpdateDelegate = new EndOperationDelegate(this.OnEndUpdate);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
432 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
433 if ((this.onUpdateCompletedDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
434 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
435 this.onUpdateCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnUpdateCompleted);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
436 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
437 base.InvokeAsync(this.onBeginUpdateDelegate, new object[] {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
438 item}, this.onEndUpdateDelegate, this.onUpdateCompletedDelegate, userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
439 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
440
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
441 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
442 System.IAsyncResult ClientDataService.BeginDelete(object item, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
443 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
444 return base.Channel.BeginDelete(item, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
445 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
446
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
447 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
448 void ClientDataService.EndDelete(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
449 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
450 base.Channel.EndDelete(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
451 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
452
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
453 private System.IAsyncResult OnBeginDelete(object[] inValues, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
454 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
455 object item = ((object)(inValues[0]));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
456 return ((ClientDataService)(this)).BeginDelete(item, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
457 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
458
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
459 private object[] OnEndDelete(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
460 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
461 ((ClientDataService)(this)).EndDelete(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
462 return null;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
463 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
464
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
465 private void OnDeleteCompleted(object state)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
466 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
467 if ((this.DeleteCompleted != null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
468 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
469 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
470 this.DeleteCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
471 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
472 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
473
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
474 public void DeleteAsync(object item)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
475 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
476 this.DeleteAsync(item, null);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
477 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
478
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
479 public void DeleteAsync(object item, object userState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
480 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
481 if ((this.onBeginDeleteDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
482 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
483 this.onBeginDeleteDelegate = new BeginOperationDelegate(this.OnBeginDelete);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
484 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
485 if ((this.onEndDeleteDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
486 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
487 this.onEndDeleteDelegate = new EndOperationDelegate(this.OnEndDelete);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
488 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
489 if ((this.onDeleteCompletedDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
490 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
491 this.onDeleteCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnDeleteCompleted);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
492 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
493 base.InvokeAsync(this.onBeginDeleteDelegate, new object[] {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
494 item}, this.onEndDeleteDelegate, this.onDeleteCompletedDelegate, userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
495 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
496
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
497 private System.IAsyncResult OnBeginOpen(object[] inValues, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
498 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
499 return ((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
500 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
501
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
502 private object[] OnEndOpen(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
503 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
504 ((System.ServiceModel.ICommunicationObject)(this)).EndOpen(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
505 return null;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
506 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
507
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
508 private void OnOpenCompleted(object state)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
509 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
510 if ((this.OpenCompleted != null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
511 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
512 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
513 this.OpenCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
514 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
515 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
516
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
517 public void OpenAsync()
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
518 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
519 this.OpenAsync(null);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
520 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
521
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
522 public void OpenAsync(object userState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
523 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
524 if ((this.onBeginOpenDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
525 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
526 this.onBeginOpenDelegate = new BeginOperationDelegate(this.OnBeginOpen);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
527 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
528 if ((this.onEndOpenDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
529 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
530 this.onEndOpenDelegate = new EndOperationDelegate(this.OnEndOpen);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
531 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
532 if ((this.onOpenCompletedDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
533 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
534 this.onOpenCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnOpenCompleted);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
535 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
536 base.InvokeAsync(this.onBeginOpenDelegate, null, this.onEndOpenDelegate, this.onOpenCompletedDelegate, userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
537 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
538
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
539 private System.IAsyncResult OnBeginClose(object[] inValues, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
540 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
541 return ((System.ServiceModel.ICommunicationObject)(this)).BeginClose(callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
542 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
543
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
544 private object[] OnEndClose(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
545 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
546 ((System.ServiceModel.ICommunicationObject)(this)).EndClose(result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
547 return null;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
548 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
549
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
550 private void OnCloseCompleted(object state)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
551 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
552 if ((this.CloseCompleted != null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
553 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
554 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
555 this.CloseCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
556 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
557 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
558
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
559 public void CloseAsync()
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
560 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
561 this.CloseAsync(null);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
562 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
563
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
564 public void CloseAsync(object userState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
565 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
566 if ((this.onBeginCloseDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
567 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
568 this.onBeginCloseDelegate = new BeginOperationDelegate(this.OnBeginClose);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
569 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
570 if ((this.onEndCloseDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
571 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
572 this.onEndCloseDelegate = new EndOperationDelegate(this.OnEndClose);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
573 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
574 if ((this.onCloseCompletedDelegate == null))
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
575 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
576 this.onCloseCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnCloseCompleted);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
577 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
578 base.InvokeAsync(this.onBeginCloseDelegate, null, this.onEndCloseDelegate, this.onCloseCompletedDelegate, userState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
579 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
580
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
581 protected override ClientDataService CreateChannel()
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
582 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
583 return new ClientDataServiceClientChannel(this);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
584 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
585
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
586 private class ClientDataServiceClientChannel : ChannelBase<ClientDataService>, ClientDataService
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
587 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
588
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
589 public ClientDataServiceClientChannel(System.ServiceModel.ClientBase<ClientDataService> client) :
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
590 base(client)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
591 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
592 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
593
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
594 public System.IAsyncResult BeginGet(int id, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
595 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
596 object[] _args = new object[1];
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
597 _args[0] = id;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
598 System.IAsyncResult _result = base.BeginInvoke("Get", _args, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
599 return _result;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
600 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
601
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
602 public object EndGet(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
603 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
604 object[] _args = new object[0];
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
605 object _result = ((object)(base.EndInvoke("Get", _args, result)));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
606 return _result;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
607 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
608
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
609 public System.IAsyncResult BeginGetAll(System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
610 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
611 object[] _args = new object[0];
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
612 System.IAsyncResult _result = base.BeginInvoke("GetAll", _args, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
613 return _result;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
614 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
615
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
616 public System.Collections.ObjectModel.ObservableCollection<object> EndGetAll(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
617 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
618 object[] _args = new object[0];
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
619 System.Collections.ObjectModel.ObservableCollection<object> _result = ((System.Collections.ObjectModel.ObservableCollection<object>)(base.EndInvoke("GetAll", _args, result)));
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
620 return _result;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
621 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
622
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
623 public System.IAsyncResult BeginInsert(object item, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
624 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
625 object[] _args = new object[1];
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
626 _args[0] = item;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
627 System.IAsyncResult _result = base.BeginInvoke("Insert", _args, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
628 return _result;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
629 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
630
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
631 public void EndInsert(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
632 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
633 object[] _args = new object[0];
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
634 base.EndInvoke("Insert", _args, result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
635 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
636
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
637 public System.IAsyncResult BeginUpdate(object item, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
638 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
639 object[] _args = new object[1];
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
640 _args[0] = item;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
641 System.IAsyncResult _result = base.BeginInvoke("Update", _args, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
642 return _result;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
643 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
644
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
645 public void EndUpdate(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
646 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
647 object[] _args = new object[0];
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
648 base.EndInvoke("Update", _args, result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
649 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
650
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
651 public System.IAsyncResult BeginDelete(object item, System.AsyncCallback callback, object asyncState)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
652 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
653 object[] _args = new object[1];
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
654 _args[0] = item;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
655 System.IAsyncResult _result = base.BeginInvoke("Delete", _args, callback, asyncState);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
656 return _result;
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
657 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
658
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
659 public void EndDelete(System.IAsyncResult result)
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
660 {
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
661 object[] _args = new object[0];
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
662 base.EndInvoke("Delete", _args, result);
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
663 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
664 }
|
Steven Hollidge <stevenhollidge@hotmail.com>
parents:
diff
changeset
|
665 }
|