Reference.cs 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Ce code a été généré par un outil.
  4. // Version du runtime :4.0.30319.42000
  5. //
  6. // Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
  7. // le code est régénéré.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. //
  11. // Ce code source a été automatiquement généré par Microsoft.VSDesigner, Version 4.0.30319.42000.
  12. //
  13. #pragma warning disable 1591
  14. namespace CD67.FicheCollege.Entity.WsExternes {
  15. using System;
  16. using System.Web.Services;
  17. using System.Diagnostics;
  18. using System.Web.Services.Protocols;
  19. using System.Xml.Serialization;
  20. using System.ComponentModel;
  21. /// <remarks/>
  22. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
  23. [System.Diagnostics.DebuggerStepThroughAttribute()]
  24. [System.ComponentModel.DesignerCategoryAttribute("code")]
  25. [System.Web.Services.WebServiceBindingAttribute(Name="WsExternesSoap", Namespace="http://tempuri.org/")]
  26. public partial class WsExternes : System.Web.Services.Protocols.SoapHttpClientProtocol {
  27. private System.Threading.SendOrPostCallback GetByIdOperationCompleted;
  28. private System.Threading.SendOrPostCallback GetByIdsOperationCompleted;
  29. private System.Threading.SendOrPostCallback GetByOperationCompleted;
  30. private System.Threading.SendOrPostCallback GetAllOperationCompleted;
  31. private System.Threading.SendOrPostCallback GetAllSortedOperationCompleted;
  32. private System.Threading.SendOrPostCallback GetManyByOperationCompleted;
  33. private System.Threading.SendOrPostCallback GetManyBySortedOperationCompleted;
  34. private bool useDefaultCredentialsSetExplicitly;
  35. /// <remarks/>
  36. public WsExternes() {
  37. this.Url = global::CD67.FicheCollege.Entity.Properties.Settings.Default.CD67_FicheCollege_Entity_WsExternes_WsExternes;
  38. if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
  39. this.UseDefaultCredentials = true;
  40. this.useDefaultCredentialsSetExplicitly = false;
  41. }
  42. else {
  43. this.useDefaultCredentialsSetExplicitly = true;
  44. }
  45. }
  46. public new string Url {
  47. get {
  48. return base.Url;
  49. }
  50. set {
  51. if ((((this.IsLocalFileSystemWebService(base.Url) == true)
  52. && (this.useDefaultCredentialsSetExplicitly == false))
  53. && (this.IsLocalFileSystemWebService(value) == false))) {
  54. base.UseDefaultCredentials = false;
  55. }
  56. base.Url = value;
  57. }
  58. }
  59. public new bool UseDefaultCredentials {
  60. get {
  61. return base.UseDefaultCredentials;
  62. }
  63. set {
  64. base.UseDefaultCredentials = value;
  65. this.useDefaultCredentialsSetExplicitly = true;
  66. }
  67. }
  68. /// <remarks/>
  69. public event GetByIdCompletedEventHandler GetByIdCompleted;
  70. /// <remarks/>
  71. public event GetByIdsCompletedEventHandler GetByIdsCompleted;
  72. /// <remarks/>
  73. public event GetByCompletedEventHandler GetByCompleted;
  74. /// <remarks/>
  75. public event GetAllCompletedEventHandler GetAllCompleted;
  76. /// <remarks/>
  77. public event GetAllSortedCompletedEventHandler GetAllSortedCompleted;
  78. /// <remarks/>
  79. public event GetManyByCompletedEventHandler GetManyByCompleted;
  80. /// <remarks/>
  81. public event GetManyBySortedCompletedEventHandler GetManyBySortedCompleted;
  82. /// <remarks/>
  83. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetById", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  84. public Agent GetById(string Key) {
  85. object[] results = this.Invoke("GetById", new object[] {
  86. Key});
  87. return ((Agent)(results[0]));
  88. }
  89. /// <remarks/>
  90. public void GetByIdAsync(string Key) {
  91. this.GetByIdAsync(Key, null);
  92. }
  93. /// <remarks/>
  94. public void GetByIdAsync(string Key, object userState) {
  95. if ((this.GetByIdOperationCompleted == null)) {
  96. this.GetByIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetByIdOperationCompleted);
  97. }
  98. this.InvokeAsync("GetById", new object[] {
  99. Key}, this.GetByIdOperationCompleted, userState);
  100. }
  101. private void OnGetByIdOperationCompleted(object arg) {
  102. if ((this.GetByIdCompleted != null)) {
  103. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  104. this.GetByIdCompleted(this, new GetByIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  105. }
  106. }
  107. /// <remarks/>
  108. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetByIds", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  109. public Agent[] GetByIds(string[] Keys) {
  110. object[] results = this.Invoke("GetByIds", new object[] {
  111. Keys});
  112. return ((Agent[])(results[0]));
  113. }
  114. /// <remarks/>
  115. public void GetByIdsAsync(string[] Keys) {
  116. this.GetByIdsAsync(Keys, null);
  117. }
  118. /// <remarks/>
  119. public void GetByIdsAsync(string[] Keys, object userState) {
  120. if ((this.GetByIdsOperationCompleted == null)) {
  121. this.GetByIdsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetByIdsOperationCompleted);
  122. }
  123. this.InvokeAsync("GetByIds", new object[] {
  124. Keys}, this.GetByIdsOperationCompleted, userState);
  125. }
  126. private void OnGetByIdsOperationCompleted(object arg) {
  127. if ((this.GetByIdsCompleted != null)) {
  128. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  129. this.GetByIdsCompleted(this, new GetByIdsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  130. }
  131. }
  132. /// <remarks/>
  133. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetBy", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  134. public Agent GetBy(string FilterExpression) {
  135. object[] results = this.Invoke("GetBy", new object[] {
  136. FilterExpression});
  137. return ((Agent)(results[0]));
  138. }
  139. /// <remarks/>
  140. public void GetByAsync(string FilterExpression) {
  141. this.GetByAsync(FilterExpression, null);
  142. }
  143. /// <remarks/>
  144. public void GetByAsync(string FilterExpression, object userState) {
  145. if ((this.GetByOperationCompleted == null)) {
  146. this.GetByOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetByOperationCompleted);
  147. }
  148. this.InvokeAsync("GetBy", new object[] {
  149. FilterExpression}, this.GetByOperationCompleted, userState);
  150. }
  151. private void OnGetByOperationCompleted(object arg) {
  152. if ((this.GetByCompleted != null)) {
  153. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  154. this.GetByCompleted(this, new GetByCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  155. }
  156. }
  157. /// <remarks/>
  158. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetAll", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  159. public Agent[] GetAll() {
  160. object[] results = this.Invoke("GetAll", new object[0]);
  161. return ((Agent[])(results[0]));
  162. }
  163. /// <remarks/>
  164. public void GetAllAsync() {
  165. this.GetAllAsync(null);
  166. }
  167. /// <remarks/>
  168. public void GetAllAsync(object userState) {
  169. if ((this.GetAllOperationCompleted == null)) {
  170. this.GetAllOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAllOperationCompleted);
  171. }
  172. this.InvokeAsync("GetAll", new object[0], this.GetAllOperationCompleted, userState);
  173. }
  174. private void OnGetAllOperationCompleted(object arg) {
  175. if ((this.GetAllCompleted != null)) {
  176. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  177. this.GetAllCompleted(this, new GetAllCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  178. }
  179. }
  180. /// <remarks/>
  181. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetAllSorted", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  182. public Agent[] GetAllSorted(string SortField, bool SortAscendant) {
  183. object[] results = this.Invoke("GetAllSorted", new object[] {
  184. SortField,
  185. SortAscendant});
  186. return ((Agent[])(results[0]));
  187. }
  188. /// <remarks/>
  189. public void GetAllSortedAsync(string SortField, bool SortAscendant) {
  190. this.GetAllSortedAsync(SortField, SortAscendant, null);
  191. }
  192. /// <remarks/>
  193. public void GetAllSortedAsync(string SortField, bool SortAscendant, object userState) {
  194. if ((this.GetAllSortedOperationCompleted == null)) {
  195. this.GetAllSortedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAllSortedOperationCompleted);
  196. }
  197. this.InvokeAsync("GetAllSorted", new object[] {
  198. SortField,
  199. SortAscendant}, this.GetAllSortedOperationCompleted, userState);
  200. }
  201. private void OnGetAllSortedOperationCompleted(object arg) {
  202. if ((this.GetAllSortedCompleted != null)) {
  203. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  204. this.GetAllSortedCompleted(this, new GetAllSortedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  205. }
  206. }
  207. /// <remarks/>
  208. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetManyBy", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  209. public Agent[] GetManyBy(string FilterExpression) {
  210. object[] results = this.Invoke("GetManyBy", new object[] {
  211. FilterExpression});
  212. return ((Agent[])(results[0]));
  213. }
  214. /// <remarks/>
  215. public void GetManyByAsync(string FilterExpression) {
  216. this.GetManyByAsync(FilterExpression, null);
  217. }
  218. /// <remarks/>
  219. public void GetManyByAsync(string FilterExpression, object userState) {
  220. if ((this.GetManyByOperationCompleted == null)) {
  221. this.GetManyByOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetManyByOperationCompleted);
  222. }
  223. this.InvokeAsync("GetManyBy", new object[] {
  224. FilterExpression}, this.GetManyByOperationCompleted, userState);
  225. }
  226. private void OnGetManyByOperationCompleted(object arg) {
  227. if ((this.GetManyByCompleted != null)) {
  228. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  229. this.GetManyByCompleted(this, new GetManyByCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  230. }
  231. }
  232. /// <remarks/>
  233. [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetManyBySorted", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
  234. public Agent[] GetManyBySorted(string FilterExpression, string SortField, bool SortAscendant) {
  235. object[] results = this.Invoke("GetManyBySorted", new object[] {
  236. FilterExpression,
  237. SortField,
  238. SortAscendant});
  239. return ((Agent[])(results[0]));
  240. }
  241. /// <remarks/>
  242. public void GetManyBySortedAsync(string FilterExpression, string SortField, bool SortAscendant) {
  243. this.GetManyBySortedAsync(FilterExpression, SortField, SortAscendant, null);
  244. }
  245. /// <remarks/>
  246. public void GetManyBySortedAsync(string FilterExpression, string SortField, bool SortAscendant, object userState) {
  247. if ((this.GetManyBySortedOperationCompleted == null)) {
  248. this.GetManyBySortedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetManyBySortedOperationCompleted);
  249. }
  250. this.InvokeAsync("GetManyBySorted", new object[] {
  251. FilterExpression,
  252. SortField,
  253. SortAscendant}, this.GetManyBySortedOperationCompleted, userState);
  254. }
  255. private void OnGetManyBySortedOperationCompleted(object arg) {
  256. if ((this.GetManyBySortedCompleted != null)) {
  257. System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
  258. this.GetManyBySortedCompleted(this, new GetManyBySortedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
  259. }
  260. }
  261. /// <remarks/>
  262. public new void CancelAsync(object userState) {
  263. base.CancelAsync(userState);
  264. }
  265. private bool IsLocalFileSystemWebService(string url) {
  266. if (((url == null)
  267. || (url == string.Empty))) {
  268. return false;
  269. }
  270. System.Uri wsUri = new System.Uri(url);
  271. if (((wsUri.Port >= 1024)
  272. && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) {
  273. return true;
  274. }
  275. return false;
  276. }
  277. }
  278. /// <remarks/>
  279. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1590.0")]
  280. [System.SerializableAttribute()]
  281. [System.Diagnostics.DebuggerStepThroughAttribute()]
  282. [System.ComponentModel.DesignerCategoryAttribute("code")]
  283. [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
  284. public partial class Agent {
  285. private string idField;
  286. private string loginField;
  287. private string nomField;
  288. private string prenomField;
  289. private string mailField;
  290. private string telephoneField;
  291. private System.Nullable<System.DateTime> expirationField;
  292. private AgentType typeIndividuField;
  293. private string organisationField;
  294. private System.Nullable<System.Guid> gUIDField;
  295. private byte[] sIDField;
  296. private string sIDasTextField;
  297. private string cheminField;
  298. private System.Nullable<bool> actifField;
  299. private System.Nullable<System.DateTime> disparitionField;
  300. private string employeeIDField;
  301. /// <remarks/>
  302. public string Id {
  303. get {
  304. return this.idField;
  305. }
  306. set {
  307. this.idField = value;
  308. }
  309. }
  310. /// <remarks/>
  311. public string Login {
  312. get {
  313. return this.loginField;
  314. }
  315. set {
  316. this.loginField = value;
  317. }
  318. }
  319. /// <remarks/>
  320. public string Nom {
  321. get {
  322. return this.nomField;
  323. }
  324. set {
  325. this.nomField = value;
  326. }
  327. }
  328. /// <remarks/>
  329. public string Prenom {
  330. get {
  331. return this.prenomField;
  332. }
  333. set {
  334. this.prenomField = value;
  335. }
  336. }
  337. /// <remarks/>
  338. public string Mail {
  339. get {
  340. return this.mailField;
  341. }
  342. set {
  343. this.mailField = value;
  344. }
  345. }
  346. /// <remarks/>
  347. public string Telephone {
  348. get {
  349. return this.telephoneField;
  350. }
  351. set {
  352. this.telephoneField = value;
  353. }
  354. }
  355. /// <remarks/>
  356. [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
  357. public System.Nullable<System.DateTime> Expiration {
  358. get {
  359. return this.expirationField;
  360. }
  361. set {
  362. this.expirationField = value;
  363. }
  364. }
  365. /// <remarks/>
  366. public AgentType TypeIndividu {
  367. get {
  368. return this.typeIndividuField;
  369. }
  370. set {
  371. this.typeIndividuField = value;
  372. }
  373. }
  374. /// <remarks/>
  375. public string Organisation {
  376. get {
  377. return this.organisationField;
  378. }
  379. set {
  380. this.organisationField = value;
  381. }
  382. }
  383. /// <remarks/>
  384. [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
  385. public System.Nullable<System.Guid> GUID {
  386. get {
  387. return this.gUIDField;
  388. }
  389. set {
  390. this.gUIDField = value;
  391. }
  392. }
  393. /// <remarks/>
  394. [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")]
  395. public byte[] SID {
  396. get {
  397. return this.sIDField;
  398. }
  399. set {
  400. this.sIDField = value;
  401. }
  402. }
  403. /// <remarks/>
  404. public string SIDasText {
  405. get {
  406. return this.sIDasTextField;
  407. }
  408. set {
  409. this.sIDasTextField = value;
  410. }
  411. }
  412. /// <remarks/>
  413. public string Chemin {
  414. get {
  415. return this.cheminField;
  416. }
  417. set {
  418. this.cheminField = value;
  419. }
  420. }
  421. /// <remarks/>
  422. [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
  423. public System.Nullable<bool> Actif {
  424. get {
  425. return this.actifField;
  426. }
  427. set {
  428. this.actifField = value;
  429. }
  430. }
  431. /// <remarks/>
  432. [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
  433. public System.Nullable<System.DateTime> Disparition {
  434. get {
  435. return this.disparitionField;
  436. }
  437. set {
  438. this.disparitionField = value;
  439. }
  440. }
  441. /// <remarks/>
  442. public string EmployeeID {
  443. get {
  444. return this.employeeIDField;
  445. }
  446. set {
  447. this.employeeIDField = value;
  448. }
  449. }
  450. }
  451. /// <remarks/>
  452. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.6.1590.0")]
  453. [System.SerializableAttribute()]
  454. [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
  455. public enum AgentType {
  456. /// <remarks/>
  457. Agent,
  458. /// <remarks/>
  459. PartenaireProche,
  460. /// <remarks/>
  461. Externe,
  462. }
  463. /// <remarks/>
  464. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
  465. public delegate void GetByIdCompletedEventHandler(object sender, GetByIdCompletedEventArgs e);
  466. /// <remarks/>
  467. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
  468. [System.Diagnostics.DebuggerStepThroughAttribute()]
  469. [System.ComponentModel.DesignerCategoryAttribute("code")]
  470. public partial class GetByIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  471. private object[] results;
  472. internal GetByIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  473. base(exception, cancelled, userState) {
  474. this.results = results;
  475. }
  476. /// <remarks/>
  477. public Agent Result {
  478. get {
  479. this.RaiseExceptionIfNecessary();
  480. return ((Agent)(this.results[0]));
  481. }
  482. }
  483. }
  484. /// <remarks/>
  485. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
  486. public delegate void GetByIdsCompletedEventHandler(object sender, GetByIdsCompletedEventArgs e);
  487. /// <remarks/>
  488. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
  489. [System.Diagnostics.DebuggerStepThroughAttribute()]
  490. [System.ComponentModel.DesignerCategoryAttribute("code")]
  491. public partial class GetByIdsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  492. private object[] results;
  493. internal GetByIdsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  494. base(exception, cancelled, userState) {
  495. this.results = results;
  496. }
  497. /// <remarks/>
  498. public Agent[] Result {
  499. get {
  500. this.RaiseExceptionIfNecessary();
  501. return ((Agent[])(this.results[0]));
  502. }
  503. }
  504. }
  505. /// <remarks/>
  506. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
  507. public delegate void GetByCompletedEventHandler(object sender, GetByCompletedEventArgs e);
  508. /// <remarks/>
  509. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
  510. [System.Diagnostics.DebuggerStepThroughAttribute()]
  511. [System.ComponentModel.DesignerCategoryAttribute("code")]
  512. public partial class GetByCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  513. private object[] results;
  514. internal GetByCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  515. base(exception, cancelled, userState) {
  516. this.results = results;
  517. }
  518. /// <remarks/>
  519. public Agent Result {
  520. get {
  521. this.RaiseExceptionIfNecessary();
  522. return ((Agent)(this.results[0]));
  523. }
  524. }
  525. }
  526. /// <remarks/>
  527. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
  528. public delegate void GetAllCompletedEventHandler(object sender, GetAllCompletedEventArgs e);
  529. /// <remarks/>
  530. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
  531. [System.Diagnostics.DebuggerStepThroughAttribute()]
  532. [System.ComponentModel.DesignerCategoryAttribute("code")]
  533. public partial class GetAllCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  534. private object[] results;
  535. internal GetAllCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  536. base(exception, cancelled, userState) {
  537. this.results = results;
  538. }
  539. /// <remarks/>
  540. public Agent[] Result {
  541. get {
  542. this.RaiseExceptionIfNecessary();
  543. return ((Agent[])(this.results[0]));
  544. }
  545. }
  546. }
  547. /// <remarks/>
  548. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
  549. public delegate void GetAllSortedCompletedEventHandler(object sender, GetAllSortedCompletedEventArgs e);
  550. /// <remarks/>
  551. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
  552. [System.Diagnostics.DebuggerStepThroughAttribute()]
  553. [System.ComponentModel.DesignerCategoryAttribute("code")]
  554. public partial class GetAllSortedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  555. private object[] results;
  556. internal GetAllSortedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  557. base(exception, cancelled, userState) {
  558. this.results = results;
  559. }
  560. /// <remarks/>
  561. public Agent[] Result {
  562. get {
  563. this.RaiseExceptionIfNecessary();
  564. return ((Agent[])(this.results[0]));
  565. }
  566. }
  567. }
  568. /// <remarks/>
  569. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
  570. public delegate void GetManyByCompletedEventHandler(object sender, GetManyByCompletedEventArgs e);
  571. /// <remarks/>
  572. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
  573. [System.Diagnostics.DebuggerStepThroughAttribute()]
  574. [System.ComponentModel.DesignerCategoryAttribute("code")]
  575. public partial class GetManyByCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  576. private object[] results;
  577. internal GetManyByCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  578. base(exception, cancelled, userState) {
  579. this.results = results;
  580. }
  581. /// <remarks/>
  582. public Agent[] Result {
  583. get {
  584. this.RaiseExceptionIfNecessary();
  585. return ((Agent[])(this.results[0]));
  586. }
  587. }
  588. }
  589. /// <remarks/>
  590. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
  591. public delegate void GetManyBySortedCompletedEventHandler(object sender, GetManyBySortedCompletedEventArgs e);
  592. /// <remarks/>
  593. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.6.1590.0")]
  594. [System.Diagnostics.DebuggerStepThroughAttribute()]
  595. [System.ComponentModel.DesignerCategoryAttribute("code")]
  596. public partial class GetManyBySortedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  597. private object[] results;
  598. internal GetManyBySortedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  599. base(exception, cancelled, userState) {
  600. this.results = results;
  601. }
  602. /// <remarks/>
  603. public Agent[] Result {
  604. get {
  605. this.RaiseExceptionIfNecessary();
  606. return ((Agent[])(this.results[0]));
  607. }
  608. }
  609. }
  610. }
  611. #pragma warning restore 1591