PageRenderTime 43ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/mcs/class/System.Runtime.Serialization/Test/System.Runtime.Serialization/Bug675144Test.cs

https://bitbucket.org/danipen/mono
C# | 531 lines | 354 code | 94 blank | 83 comment | 48 complexity | b3d5a2311446cfb1da64e72b39cfff3b MD5 | raw file
Possible License(s): Unlicense, Apache-2.0, LGPL-2.0, MPL-2.0-no-copyleft-exception, CC-BY-SA-3.0, GPL-2.0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Runtime.Serialization;
  5. using System.ServiceModel;
  6. using System.ServiceModel.Channels;
  7. using System.ServiceModel.Description;
  8. using System.Xml;
  9. using WebServiceMoonlightTest.ServiceReference1;
  10. using NUnit.Framework;
  11. namespace MonoTests.System.Runtime.Serialization
  12. {
  13. [TestFixture]
  14. public partial class Bug675144Test
  15. {
  16. [Test]
  17. public void ServerSerialization ()
  18. {
  19. var obj = new DataType2 { Items = new List<object> { new DataType1 { Id = "D" }, new DataType1 { Id = "E" } } };
  20. var ds = new DataContractSerializer (typeof (DataType2));
  21. var sw = new StringWriter ();
  22. using (var xw = XmlWriter.Create (sw))
  23. ds.WriteObject (xw, obj);
  24. Assert.IsTrue (sw.ToString ().IndexOf ("anyType i:type=\"DataType1\"") > 0, "#1");
  25. }
  26. }
  27. }
  28. //------------------------------------------------------------------------------
  29. // <auto-generated>
  30. // This code was generated by a tool.
  31. // Runtime Version:4.0.30319.372
  32. //
  33. // Changes to this file may cause incorrect behavior and will be lost if
  34. // the code is regenerated.
  35. // </auto-generated>
  36. //------------------------------------------------------------------------------
  37. //
  38. // This code was auto-generated by Microsoft.Silverlight.ServiceReference, version 4.0.50826.0
  39. //
  40. namespace WebServiceMoonlightTest.ServiceReference1 {
  41. using System.Runtime.Serialization;
  42. [System.Diagnostics.DebuggerStepThroughAttribute()]
  43. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
  44. [System.Runtime.Serialization.DataContractAttribute(Name="DataType1", Namespace="http://mynamespace")]
  45. public partial class DataType1 : object, System.ComponentModel.INotifyPropertyChanged {
  46. private string IdField;
  47. [System.Runtime.Serialization.DataMemberAttribute()]
  48. public string Id {
  49. get {
  50. return this.IdField;
  51. }
  52. set {
  53. if ((object.ReferenceEquals(this.IdField, value) != true)) {
  54. this.IdField = value;
  55. this.RaisePropertyChanged("Id");
  56. }
  57. }
  58. }
  59. public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
  60. protected void RaisePropertyChanged(string propertyName) {
  61. System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
  62. if ((propertyChanged != null)) {
  63. propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
  64. }
  65. }
  66. }
  67. [System.Diagnostics.DebuggerStepThroughAttribute()]
  68. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "4.0.0.0")]
  69. [System.Runtime.Serialization.DataContractAttribute(Name="DataType2", Namespace="http://mynamespace")]
  70. [System.Runtime.Serialization.KnownTypeAttribute(typeof(WebServiceMoonlightTest.ServiceReference1.DataType1))]
  71. [System.Runtime.Serialization.KnownTypeAttribute(typeof(System.Collections.Generic.IEnumerable<object>))]
  72. public partial class DataType2 : object, System.ComponentModel.INotifyPropertyChanged {
  73. private System.Collections.Generic.IEnumerable<object> ItemsField;
  74. [System.Runtime.Serialization.DataMemberAttribute()]
  75. public System.Collections.Generic.IEnumerable<object> Items {
  76. get {
  77. return this.ItemsField;
  78. }
  79. set {
  80. if ((object.ReferenceEquals(this.ItemsField, value) != true)) {
  81. this.ItemsField = value;
  82. this.RaisePropertyChanged("Items");
  83. }
  84. }
  85. }
  86. public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
  87. protected void RaisePropertyChanged(string propertyName) {
  88. System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
  89. if ((propertyChanged != null)) {
  90. propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
  91. }
  92. }
  93. }
  94. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  95. [System.ServiceModel.ServiceContractAttribute(Namespace="http://mynamespace", ConfigurationName="ServiceReference1.IService1")]
  96. public interface IService1 {
  97. [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://mynamespace/IService1/GetData", ReplyAction="http://mynamespace/IService1/GetDataResponse")]
  98. [System.ServiceModel.ServiceKnownTypeAttribute(typeof(WebServiceMoonlightTest.ServiceReference1.DataType1))]
  99. [System.ServiceModel.ServiceKnownTypeAttribute(typeof(WebServiceMoonlightTest.ServiceReference1.DataType2))]
  100. [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.IEnumerable<object>))]
  101. System.IAsyncResult BeginGetData(System.AsyncCallback callback, object asyncState);
  102. object EndGetData(System.IAsyncResult result);
  103. [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://mynamespace/IService1/GetCollectionData", ReplyAction="http://mynamespace/IService1/GetCollectionDataResponse")]
  104. [System.ServiceModel.ServiceKnownTypeAttribute(typeof(WebServiceMoonlightTest.ServiceReference1.DataType1))]
  105. [System.ServiceModel.ServiceKnownTypeAttribute(typeof(WebServiceMoonlightTest.ServiceReference1.DataType2))]
  106. [System.ServiceModel.ServiceKnownTypeAttribute(typeof(System.Collections.Generic.IEnumerable<object>))]
  107. System.IAsyncResult BeginGetCollectionData(System.AsyncCallback callback, object asyncState);
  108. System.Collections.Generic.IEnumerable<object> EndGetCollectionData(System.IAsyncResult result);
  109. [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://mynamespace/IService1/GetNestedData", ReplyAction="http://mynamespace/IService1/GetNestedDataResponse")]
  110. System.IAsyncResult BeginGetNestedData(System.AsyncCallback callback, object asyncState);
  111. WebServiceMoonlightTest.ServiceReference1.DataType2 EndGetNestedData(System.IAsyncResult result);
  112. }
  113. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  114. public interface IService1Channel : WebServiceMoonlightTest.ServiceReference1.IService1, System.ServiceModel.IClientChannel {
  115. }
  116. [System.Diagnostics.DebuggerStepThroughAttribute()]
  117. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  118. public partial class GetDataCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  119. private object[] results;
  120. public GetDataCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  121. base(exception, cancelled, userState) {
  122. this.results = results;
  123. }
  124. public object Result {
  125. get {
  126. base.RaiseExceptionIfNecessary();
  127. return ((object)(this.results[0]));
  128. }
  129. }
  130. }
  131. [System.Diagnostics.DebuggerStepThroughAttribute()]
  132. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  133. public partial class GetCollectionDataCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  134. private object[] results;
  135. public GetCollectionDataCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  136. base(exception, cancelled, userState) {
  137. this.results = results;
  138. }
  139. public System.Collections.Generic.IEnumerable<object> Result {
  140. get {
  141. base.RaiseExceptionIfNecessary();
  142. return ((System.Collections.Generic.IEnumerable<object>)(this.results[0]));
  143. }
  144. }
  145. }
  146. [System.Diagnostics.DebuggerStepThroughAttribute()]
  147. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  148. public partial class GetNestedDataCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  149. private object[] results;
  150. public GetNestedDataCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  151. base(exception, cancelled, userState) {
  152. this.results = results;
  153. }
  154. public WebServiceMoonlightTest.ServiceReference1.DataType2 Result {
  155. get {
  156. base.RaiseExceptionIfNecessary();
  157. return ((WebServiceMoonlightTest.ServiceReference1.DataType2)(this.results[0]));
  158. }
  159. }
  160. }
  161. [System.Diagnostics.DebuggerStepThroughAttribute()]
  162. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  163. public partial class Service1Client : System.ServiceModel.ClientBase<WebServiceMoonlightTest.ServiceReference1.IService1>, WebServiceMoonlightTest.ServiceReference1.IService1 {
  164. private BeginOperationDelegate onBeginGetDataDelegate;
  165. private EndOperationDelegate onEndGetDataDelegate;
  166. private System.Threading.SendOrPostCallback onGetDataCompletedDelegate;
  167. private BeginOperationDelegate onBeginGetCollectionDataDelegate;
  168. private EndOperationDelegate onEndGetCollectionDataDelegate;
  169. private System.Threading.SendOrPostCallback onGetCollectionDataCompletedDelegate;
  170. private BeginOperationDelegate onBeginGetNestedDataDelegate;
  171. private EndOperationDelegate onEndGetNestedDataDelegate;
  172. private System.Threading.SendOrPostCallback onGetNestedDataCompletedDelegate;
  173. private BeginOperationDelegate onBeginOpenDelegate;
  174. private EndOperationDelegate onEndOpenDelegate;
  175. private System.Threading.SendOrPostCallback onOpenCompletedDelegate;
  176. private BeginOperationDelegate onBeginCloseDelegate;
  177. private EndOperationDelegate onEndCloseDelegate;
  178. private System.Threading.SendOrPostCallback onCloseCompletedDelegate;
  179. public Service1Client() {
  180. }
  181. public Service1Client(string endpointConfigurationName) :
  182. base(endpointConfigurationName) {
  183. }
  184. public Service1Client(string endpointConfigurationName, string remoteAddress) :
  185. base(endpointConfigurationName, remoteAddress) {
  186. }
  187. public Service1Client(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
  188. base(endpointConfigurationName, remoteAddress) {
  189. }
  190. public Service1Client(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
  191. base(binding, remoteAddress) {
  192. }
  193. /*
  194. public System.Net.CookieContainer CookieContainer {
  195. get {
  196. System.ServiceModel.Channels.IHttpCookieContainerManager httpCookieContainerManager = this.InnerChannel.GetProperty<System.ServiceModel.Channels.IHttpCookieContainerManager>();
  197. if ((httpCookieContainerManager != null)) {
  198. return httpCookieContainerManager.CookieContainer;
  199. }
  200. else {
  201. return null;
  202. }
  203. }
  204. set {
  205. System.ServiceModel.Channels.IHttpCookieContainerManager httpCookieContainerManager = this.InnerChannel.GetProperty<System.ServiceModel.Channels.IHttpCookieContainerManager>();
  206. if ((httpCookieContainerManager != null)) {
  207. httpCookieContainerManager.CookieContainer = value;
  208. }
  209. else {
  210. throw new System.InvalidOperationException("Unable to set the CookieContainer. Please make sure the binding contains an HttpC" +
  211. "ookieContainerBindingElement.");
  212. }
  213. }
  214. }
  215. */
  216. public event System.EventHandler<GetDataCompletedEventArgs> GetDataCompleted;
  217. public event System.EventHandler<GetCollectionDataCompletedEventArgs> GetCollectionDataCompleted;
  218. public event System.EventHandler<GetNestedDataCompletedEventArgs> GetNestedDataCompleted;
  219. public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> OpenCompleted;
  220. public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> CloseCompleted;
  221. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  222. System.IAsyncResult WebServiceMoonlightTest.ServiceReference1.IService1.BeginGetData(System.AsyncCallback callback, object asyncState) {
  223. return base.Channel.BeginGetData(callback, asyncState);
  224. }
  225. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  226. object WebServiceMoonlightTest.ServiceReference1.IService1.EndGetData(System.IAsyncResult result) {
  227. return base.Channel.EndGetData(result);
  228. }
  229. private System.IAsyncResult OnBeginGetData(object[] inValues, System.AsyncCallback callback, object asyncState) {
  230. return ((WebServiceMoonlightTest.ServiceReference1.IService1)(this)).BeginGetData(callback, asyncState);
  231. }
  232. private object[] OnEndGetData(System.IAsyncResult result) {
  233. object retVal = ((WebServiceMoonlightTest.ServiceReference1.IService1)(this)).EndGetData(result);
  234. return new object[] {
  235. retVal};
  236. }
  237. private void OnGetDataCompleted(object state) {
  238. if ((this.GetDataCompleted != null)) {
  239. InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
  240. this.GetDataCompleted(this, new GetDataCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
  241. }
  242. }
  243. public void GetDataAsync() {
  244. this.GetDataAsync(null);
  245. }
  246. public void GetDataAsync(object userState) {
  247. if ((this.onBeginGetDataDelegate == null)) {
  248. this.onBeginGetDataDelegate = new BeginOperationDelegate(this.OnBeginGetData);
  249. }
  250. if ((this.onEndGetDataDelegate == null)) {
  251. this.onEndGetDataDelegate = new EndOperationDelegate(this.OnEndGetData);
  252. }
  253. if ((this.onGetDataCompletedDelegate == null)) {
  254. this.onGetDataCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetDataCompleted);
  255. }
  256. base.InvokeAsync(this.onBeginGetDataDelegate, null, this.onEndGetDataDelegate, this.onGetDataCompletedDelegate, userState);
  257. }
  258. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  259. System.IAsyncResult WebServiceMoonlightTest.ServiceReference1.IService1.BeginGetCollectionData(System.AsyncCallback callback, object asyncState) {
  260. return base.Channel.BeginGetCollectionData(callback, asyncState);
  261. }
  262. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  263. System.Collections.Generic.IEnumerable<object> WebServiceMoonlightTest.ServiceReference1.IService1.EndGetCollectionData(System.IAsyncResult result) {
  264. return base.Channel.EndGetCollectionData(result);
  265. }
  266. private System.IAsyncResult OnBeginGetCollectionData(object[] inValues, System.AsyncCallback callback, object asyncState) {
  267. return ((WebServiceMoonlightTest.ServiceReference1.IService1)(this)).BeginGetCollectionData(callback, asyncState);
  268. }
  269. private object[] OnEndGetCollectionData(System.IAsyncResult result) {
  270. System.Collections.Generic.IEnumerable<object> retVal = ((WebServiceMoonlightTest.ServiceReference1.IService1)(this)).EndGetCollectionData(result);
  271. return new object[] {
  272. retVal};
  273. }
  274. private void OnGetCollectionDataCompleted(object state) {
  275. if ((this.GetCollectionDataCompleted != null)) {
  276. InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
  277. this.GetCollectionDataCompleted(this, new GetCollectionDataCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
  278. }
  279. }
  280. public void GetCollectionDataAsync() {
  281. this.GetCollectionDataAsync(null);
  282. }
  283. public void GetCollectionDataAsync(object userState) {
  284. if ((this.onBeginGetCollectionDataDelegate == null)) {
  285. this.onBeginGetCollectionDataDelegate = new BeginOperationDelegate(this.OnBeginGetCollectionData);
  286. }
  287. if ((this.onEndGetCollectionDataDelegate == null)) {
  288. this.onEndGetCollectionDataDelegate = new EndOperationDelegate(this.OnEndGetCollectionData);
  289. }
  290. if ((this.onGetCollectionDataCompletedDelegate == null)) {
  291. this.onGetCollectionDataCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetCollectionDataCompleted);
  292. }
  293. base.InvokeAsync(this.onBeginGetCollectionDataDelegate, null, this.onEndGetCollectionDataDelegate, this.onGetCollectionDataCompletedDelegate, userState);
  294. }
  295. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  296. System.IAsyncResult WebServiceMoonlightTest.ServiceReference1.IService1.BeginGetNestedData(System.AsyncCallback callback, object asyncState) {
  297. return base.Channel.BeginGetNestedData(callback, asyncState);
  298. }
  299. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  300. WebServiceMoonlightTest.ServiceReference1.DataType2 WebServiceMoonlightTest.ServiceReference1.IService1.EndGetNestedData(System.IAsyncResult result) {
  301. return base.Channel.EndGetNestedData(result);
  302. }
  303. private System.IAsyncResult OnBeginGetNestedData(object[] inValues, System.AsyncCallback callback, object asyncState) {
  304. return ((WebServiceMoonlightTest.ServiceReference1.IService1)(this)).BeginGetNestedData(callback, asyncState);
  305. }
  306. private object[] OnEndGetNestedData(System.IAsyncResult result) {
  307. WebServiceMoonlightTest.ServiceReference1.DataType2 retVal = ((WebServiceMoonlightTest.ServiceReference1.IService1)(this)).EndGetNestedData(result);
  308. return new object[] {
  309. retVal};
  310. }
  311. private void OnGetNestedDataCompleted(object state) {
  312. if ((this.GetNestedDataCompleted != null)) {
  313. InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
  314. this.GetNestedDataCompleted(this, new GetNestedDataCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
  315. }
  316. }
  317. public void GetNestedDataAsync() {
  318. this.GetNestedDataAsync(null);
  319. }
  320. public void GetNestedDataAsync(object userState) {
  321. if ((this.onBeginGetNestedDataDelegate == null)) {
  322. this.onBeginGetNestedDataDelegate = new BeginOperationDelegate(this.OnBeginGetNestedData);
  323. }
  324. if ((this.onEndGetNestedDataDelegate == null)) {
  325. this.onEndGetNestedDataDelegate = new EndOperationDelegate(this.OnEndGetNestedData);
  326. }
  327. if ((this.onGetNestedDataCompletedDelegate == null)) {
  328. this.onGetNestedDataCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetNestedDataCompleted);
  329. }
  330. base.InvokeAsync(this.onBeginGetNestedDataDelegate, null, this.onEndGetNestedDataDelegate, this.onGetNestedDataCompletedDelegate, userState);
  331. }
  332. private System.IAsyncResult OnBeginOpen(object[] inValues, System.AsyncCallback callback, object asyncState) {
  333. return ((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(callback, asyncState);
  334. }
  335. private object[] OnEndOpen(System.IAsyncResult result) {
  336. ((System.ServiceModel.ICommunicationObject)(this)).EndOpen(result);
  337. return null;
  338. }
  339. private void OnOpenCompleted(object state) {
  340. if ((this.OpenCompleted != null)) {
  341. InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
  342. this.OpenCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
  343. }
  344. }
  345. public void OpenAsync() {
  346. this.OpenAsync(null);
  347. }
  348. public void OpenAsync(object userState) {
  349. if ((this.onBeginOpenDelegate == null)) {
  350. this.onBeginOpenDelegate = new BeginOperationDelegate(this.OnBeginOpen);
  351. }
  352. if ((this.onEndOpenDelegate == null)) {
  353. this.onEndOpenDelegate = new EndOperationDelegate(this.OnEndOpen);
  354. }
  355. if ((this.onOpenCompletedDelegate == null)) {
  356. this.onOpenCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnOpenCompleted);
  357. }
  358. base.InvokeAsync(this.onBeginOpenDelegate, null, this.onEndOpenDelegate, this.onOpenCompletedDelegate, userState);
  359. }
  360. private System.IAsyncResult OnBeginClose(object[] inValues, System.AsyncCallback callback, object asyncState) {
  361. return ((System.ServiceModel.ICommunicationObject)(this)).BeginClose(callback, asyncState);
  362. }
  363. private object[] OnEndClose(System.IAsyncResult result) {
  364. ((System.ServiceModel.ICommunicationObject)(this)).EndClose(result);
  365. return null;
  366. }
  367. private void OnCloseCompleted(object state) {
  368. if ((this.CloseCompleted != null)) {
  369. InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
  370. this.CloseCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState));
  371. }
  372. }
  373. public void CloseAsync() {
  374. this.CloseAsync(null);
  375. }
  376. public void CloseAsync(object userState) {
  377. if ((this.onBeginCloseDelegate == null)) {
  378. this.onBeginCloseDelegate = new BeginOperationDelegate(this.OnBeginClose);
  379. }
  380. if ((this.onEndCloseDelegate == null)) {
  381. this.onEndCloseDelegate = new EndOperationDelegate(this.OnEndClose);
  382. }
  383. if ((this.onCloseCompletedDelegate == null)) {
  384. this.onCloseCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnCloseCompleted);
  385. }
  386. base.InvokeAsync(this.onBeginCloseDelegate, null, this.onEndCloseDelegate, this.onCloseCompletedDelegate, userState);
  387. }
  388. /*
  389. protected override WebServiceMoonlightTest.ServiceReference1.IService1 CreateChannel() {
  390. return new Service1ClientChannel(this);
  391. }
  392. private class Service1ClientChannel : ChannelBase<WebServiceMoonlightTest.ServiceReference1.IService1>, WebServiceMoonlightTest.ServiceReference1.IService1 {
  393. public Service1ClientChannel(System.ServiceModel.ClientBase<WebServiceMoonlightTest.ServiceReference1.IService1> client) :
  394. base(client) {
  395. }
  396. public System.IAsyncResult BeginGetData(System.AsyncCallback callback, object asyncState) {
  397. object[] _args = new object[0];
  398. System.IAsyncResult _result = base.BeginInvoke("GetData", _args, callback, asyncState);
  399. return _result;
  400. }
  401. public object EndGetData(System.IAsyncResult result) {
  402. object[] _args = new object[0];
  403. object _result = ((object)(base.EndInvoke("GetData", _args, result)));
  404. return _result;
  405. }
  406. public System.IAsyncResult BeginGetCollectionData(System.AsyncCallback callback, object asyncState) {
  407. object[] _args = new object[0];
  408. System.IAsyncResult _result = base.BeginInvoke("GetCollectionData", _args, callback, asyncState);
  409. return _result;
  410. }
  411. public System.Collections.Generic.IEnumerable<object> EndGetCollectionData(System.IAsyncResult result) {
  412. object[] _args = new object[0];
  413. System.Collections.Generic.IEnumerable<object> _result = ((System.Collections.Generic.IEnumerable<object>)(base.EndInvoke("GetCollectionData", _args, result)));
  414. return _result;
  415. }
  416. public System.IAsyncResult BeginGetNestedData(System.AsyncCallback callback, object asyncState) {
  417. object[] _args = new object[0];
  418. System.IAsyncResult _result = base.BeginInvoke("GetNestedData", _args, callback, asyncState);
  419. return _result;
  420. }
  421. public WebServiceMoonlightTest.ServiceReference1.DataType2 EndGetNestedData(System.IAsyncResult result) {
  422. object[] _args = new object[0];
  423. WebServiceMoonlightTest.ServiceReference1.DataType2 _result = ((WebServiceMoonlightTest.ServiceReference1.DataType2)(base.EndInvoke("GetNestedData", _args, result)));
  424. return _result;
  425. }
  426. }
  427. */
  428. }
  429. }