Reference.cs 49 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Runtime Version:4.0.30319.431
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. namespace Excercise7.DictionarySuggestService {
  11. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  12. [System.ServiceModel.ServiceContractAttribute(Namespace="http://services.aonaware.com/webservices/", ConfigurationName="DictionarySuggestService.DictServiceSoap")]
  13. public interface DictServiceSoap {
  14. [System.ServiceModel.OperationContractAttribute(Action="http://services.aonaware.com/webservices/ServerInfo", ReplyAction="*")]
  15. [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
  16. string ServerInfo();
  17. [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://services.aonaware.com/webservices/ServerInfo", ReplyAction="*")]
  18. System.IAsyncResult BeginServerInfo(System.AsyncCallback callback, object asyncState);
  19. string EndServerInfo(System.IAsyncResult result);
  20. [System.ServiceModel.OperationContractAttribute(Action="http://services.aonaware.com/webservices/DictionaryList", ReplyAction="*")]
  21. [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
  22. Dictionary[] DictionaryList();
  23. [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://services.aonaware.com/webservices/DictionaryList", ReplyAction="*")]
  24. System.IAsyncResult BeginDictionaryList(System.AsyncCallback callback, object asyncState);
  25. Dictionary[] EndDictionaryList(System.IAsyncResult result);
  26. [System.ServiceModel.OperationContractAttribute(Action="http://services.aonaware.com/webservices/DictionaryListExtended", ReplyAction="*")]
  27. [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
  28. Dictionary[] DictionaryListExtended();
  29. [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://services.aonaware.com/webservices/DictionaryListExtended", ReplyAction="*")]
  30. System.IAsyncResult BeginDictionaryListExtended(System.AsyncCallback callback, object asyncState);
  31. Dictionary[] EndDictionaryListExtended(System.IAsyncResult result);
  32. [System.ServiceModel.OperationContractAttribute(Action="http://services.aonaware.com/webservices/DictionaryInfo", ReplyAction="*")]
  33. [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
  34. string DictionaryInfo(string dictId);
  35. [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://services.aonaware.com/webservices/DictionaryInfo", ReplyAction="*")]
  36. System.IAsyncResult BeginDictionaryInfo(string dictId, System.AsyncCallback callback, object asyncState);
  37. string EndDictionaryInfo(System.IAsyncResult result);
  38. [System.ServiceModel.OperationContractAttribute(Action="http://services.aonaware.com/webservices/Define", ReplyAction="*")]
  39. [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
  40. Excercise7.DictionarySuggestService.WordDefinition Define(string word);
  41. [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://services.aonaware.com/webservices/Define", ReplyAction="*")]
  42. System.IAsyncResult BeginDefine(string word, System.AsyncCallback callback, object asyncState);
  43. Excercise7.DictionarySuggestService.WordDefinition EndDefine(System.IAsyncResult result);
  44. [System.ServiceModel.OperationContractAttribute(Action="http://services.aonaware.com/webservices/DefineInDict", ReplyAction="*")]
  45. [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
  46. Excercise7.DictionarySuggestService.WordDefinition DefineInDict(string dictId, string word);
  47. [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://services.aonaware.com/webservices/DefineInDict", ReplyAction="*")]
  48. System.IAsyncResult BeginDefineInDict(string dictId, string word, System.AsyncCallback callback, object asyncState);
  49. Excercise7.DictionarySuggestService.WordDefinition EndDefineInDict(System.IAsyncResult result);
  50. [System.ServiceModel.OperationContractAttribute(Action="http://services.aonaware.com/webservices/StrategyList", ReplyAction="*")]
  51. [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
  52. Strategy[] StrategyList();
  53. [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://services.aonaware.com/webservices/StrategyList", ReplyAction="*")]
  54. System.IAsyncResult BeginStrategyList(System.AsyncCallback callback, object asyncState);
  55. Strategy[] EndStrategyList(System.IAsyncResult result);
  56. [System.ServiceModel.OperationContractAttribute(Action="http://services.aonaware.com/webservices/Match", ReplyAction="*")]
  57. [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
  58. DictionaryWord[] Match(string word, string strategy);
  59. [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://services.aonaware.com/webservices/Match", ReplyAction="*")]
  60. System.IAsyncResult BeginMatch(string word, string strategy, System.AsyncCallback callback, object asyncState);
  61. DictionaryWord[] EndMatch(System.IAsyncResult result);
  62. [System.ServiceModel.OperationContractAttribute(Action="http://services.aonaware.com/webservices/MatchInDict", ReplyAction="*")]
  63. [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
  64. DictionaryWord[] MatchInDict(string dictId, string word, string strategy);
  65. [System.ServiceModel.OperationContractAttribute(AsyncPattern=true, Action="http://services.aonaware.com/webservices/MatchInDict", ReplyAction="*")]
  66. System.IAsyncResult BeginMatchInDict(string dictId, string word, string strategy, System.AsyncCallback callback, object asyncState);
  67. DictionaryWord[] EndMatchInDict(System.IAsyncResult result);
  68. }
  69. /// <remarks/>
  70. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.431")]
  71. [System.SerializableAttribute()]
  72. [System.Diagnostics.DebuggerStepThroughAttribute()]
  73. [System.ComponentModel.DesignerCategoryAttribute("code")]
  74. [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://services.aonaware.com/webservices/")]
  75. public partial class Dictionary : object, System.ComponentModel.INotifyPropertyChanged {
  76. private string idField;
  77. private string nameField;
  78. /// <remarks/>
  79. [System.Xml.Serialization.XmlElementAttribute(Order=0)]
  80. public string Id {
  81. get {
  82. return this.idField;
  83. }
  84. set {
  85. this.idField = value;
  86. this.RaisePropertyChanged("Id");
  87. }
  88. }
  89. /// <remarks/>
  90. [System.Xml.Serialization.XmlElementAttribute(Order=1)]
  91. public string Name {
  92. get {
  93. return this.nameField;
  94. }
  95. set {
  96. this.nameField = value;
  97. this.RaisePropertyChanged("Name");
  98. }
  99. }
  100. public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
  101. protected void RaisePropertyChanged(string propertyName) {
  102. System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
  103. if ((propertyChanged != null)) {
  104. propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
  105. }
  106. }
  107. }
  108. /// <remarks/>
  109. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.431")]
  110. [System.SerializableAttribute()]
  111. [System.Diagnostics.DebuggerStepThroughAttribute()]
  112. [System.ComponentModel.DesignerCategoryAttribute("code")]
  113. [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://services.aonaware.com/webservices/")]
  114. public partial class DictionaryWord : object, System.ComponentModel.INotifyPropertyChanged {
  115. private string dictionaryIdField;
  116. private string wordField;
  117. /// <remarks/>
  118. [System.Xml.Serialization.XmlElementAttribute(Order=0)]
  119. public string DictionaryId {
  120. get {
  121. return this.dictionaryIdField;
  122. }
  123. set {
  124. this.dictionaryIdField = value;
  125. this.RaisePropertyChanged("DictionaryId");
  126. }
  127. }
  128. /// <remarks/>
  129. [System.Xml.Serialization.XmlElementAttribute(Order=1)]
  130. public string Word {
  131. get {
  132. return this.wordField;
  133. }
  134. set {
  135. this.wordField = value;
  136. this.RaisePropertyChanged("Word");
  137. }
  138. }
  139. public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
  140. protected void RaisePropertyChanged(string propertyName) {
  141. System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
  142. if ((propertyChanged != null)) {
  143. propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
  144. }
  145. }
  146. }
  147. /// <remarks/>
  148. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.431")]
  149. [System.SerializableAttribute()]
  150. [System.Diagnostics.DebuggerStepThroughAttribute()]
  151. [System.ComponentModel.DesignerCategoryAttribute("code")]
  152. [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://services.aonaware.com/webservices/")]
  153. public partial class Strategy : object, System.ComponentModel.INotifyPropertyChanged {
  154. private string idField;
  155. private string descriptionField;
  156. /// <remarks/>
  157. [System.Xml.Serialization.XmlElementAttribute(Order=0)]
  158. public string Id {
  159. get {
  160. return this.idField;
  161. }
  162. set {
  163. this.idField = value;
  164. this.RaisePropertyChanged("Id");
  165. }
  166. }
  167. /// <remarks/>
  168. [System.Xml.Serialization.XmlElementAttribute(Order=1)]
  169. public string Description {
  170. get {
  171. return this.descriptionField;
  172. }
  173. set {
  174. this.descriptionField = value;
  175. this.RaisePropertyChanged("Description");
  176. }
  177. }
  178. public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
  179. protected void RaisePropertyChanged(string propertyName) {
  180. System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
  181. if ((propertyChanged != null)) {
  182. propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
  183. }
  184. }
  185. }
  186. /// <remarks/>
  187. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.431")]
  188. [System.SerializableAttribute()]
  189. [System.Diagnostics.DebuggerStepThroughAttribute()]
  190. [System.ComponentModel.DesignerCategoryAttribute("code")]
  191. [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://services.aonaware.com/webservices/")]
  192. public partial class Definition : object, System.ComponentModel.INotifyPropertyChanged {
  193. private string wordField;
  194. private Dictionary dictionaryField;
  195. private string wordDefinitionField;
  196. /// <remarks/>
  197. [System.Xml.Serialization.XmlElementAttribute(Order=0)]
  198. public string Word {
  199. get {
  200. return this.wordField;
  201. }
  202. set {
  203. this.wordField = value;
  204. this.RaisePropertyChanged("Word");
  205. }
  206. }
  207. /// <remarks/>
  208. [System.Xml.Serialization.XmlElementAttribute(Order=1)]
  209. public Dictionary Dictionary {
  210. get {
  211. return this.dictionaryField;
  212. }
  213. set {
  214. this.dictionaryField = value;
  215. this.RaisePropertyChanged("Dictionary");
  216. }
  217. }
  218. /// <remarks/>
  219. [System.Xml.Serialization.XmlElementAttribute(Order=2)]
  220. public string WordDefinition {
  221. get {
  222. return this.wordDefinitionField;
  223. }
  224. set {
  225. this.wordDefinitionField = value;
  226. this.RaisePropertyChanged("WordDefinition");
  227. }
  228. }
  229. public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
  230. protected void RaisePropertyChanged(string propertyName) {
  231. System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
  232. if ((propertyChanged != null)) {
  233. propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
  234. }
  235. }
  236. }
  237. /// <remarks/>
  238. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.431")]
  239. [System.SerializableAttribute()]
  240. [System.Diagnostics.DebuggerStepThroughAttribute()]
  241. [System.ComponentModel.DesignerCategoryAttribute("code")]
  242. [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://services.aonaware.com/webservices/")]
  243. public partial class WordDefinition : object, System.ComponentModel.INotifyPropertyChanged {
  244. private string wordField;
  245. private Definition[] definitionsField;
  246. /// <remarks/>
  247. [System.Xml.Serialization.XmlElementAttribute(Order=0)]
  248. public string Word {
  249. get {
  250. return this.wordField;
  251. }
  252. set {
  253. this.wordField = value;
  254. this.RaisePropertyChanged("Word");
  255. }
  256. }
  257. /// <remarks/>
  258. [System.Xml.Serialization.XmlArrayAttribute(Order=1)]
  259. public Definition[] Definitions {
  260. get {
  261. return this.definitionsField;
  262. }
  263. set {
  264. this.definitionsField = value;
  265. this.RaisePropertyChanged("Definitions");
  266. }
  267. }
  268. public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
  269. protected void RaisePropertyChanged(string propertyName) {
  270. System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
  271. if ((propertyChanged != null)) {
  272. propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
  273. }
  274. }
  275. }
  276. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  277. public interface DictServiceSoapChannel : Excercise7.DictionarySuggestService.DictServiceSoap, System.ServiceModel.IClientChannel {
  278. }
  279. [System.Diagnostics.DebuggerStepThroughAttribute()]
  280. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  281. public partial class ServerInfoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  282. private object[] results;
  283. public ServerInfoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  284. base(exception, cancelled, userState) {
  285. this.results = results;
  286. }
  287. public string Result {
  288. get {
  289. base.RaiseExceptionIfNecessary();
  290. return ((string)(this.results[0]));
  291. }
  292. }
  293. }
  294. [System.Diagnostics.DebuggerStepThroughAttribute()]
  295. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  296. public partial class DictionaryListCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  297. private object[] results;
  298. public DictionaryListCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  299. base(exception, cancelled, userState) {
  300. this.results = results;
  301. }
  302. public Dictionary[] Result {
  303. get {
  304. base.RaiseExceptionIfNecessary();
  305. return ((Dictionary[])(this.results[0]));
  306. }
  307. }
  308. }
  309. [System.Diagnostics.DebuggerStepThroughAttribute()]
  310. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  311. public partial class DictionaryListExtendedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  312. private object[] results;
  313. public DictionaryListExtendedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  314. base(exception, cancelled, userState) {
  315. this.results = results;
  316. }
  317. public Dictionary[] Result {
  318. get {
  319. base.RaiseExceptionIfNecessary();
  320. return ((Dictionary[])(this.results[0]));
  321. }
  322. }
  323. }
  324. [System.Diagnostics.DebuggerStepThroughAttribute()]
  325. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  326. public partial class DictionaryInfoCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  327. private object[] results;
  328. public DictionaryInfoCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  329. base(exception, cancelled, userState) {
  330. this.results = results;
  331. }
  332. public string Result {
  333. get {
  334. base.RaiseExceptionIfNecessary();
  335. return ((string)(this.results[0]));
  336. }
  337. }
  338. }
  339. [System.Diagnostics.DebuggerStepThroughAttribute()]
  340. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  341. public partial class DefineCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  342. private object[] results;
  343. public DefineCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  344. base(exception, cancelled, userState) {
  345. this.results = results;
  346. }
  347. public Excercise7.DictionarySuggestService.WordDefinition Result {
  348. get {
  349. base.RaiseExceptionIfNecessary();
  350. return ((Excercise7.DictionarySuggestService.WordDefinition)(this.results[0]));
  351. }
  352. }
  353. }
  354. [System.Diagnostics.DebuggerStepThroughAttribute()]
  355. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  356. public partial class DefineInDictCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  357. private object[] results;
  358. public DefineInDictCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  359. base(exception, cancelled, userState) {
  360. this.results = results;
  361. }
  362. public Excercise7.DictionarySuggestService.WordDefinition Result {
  363. get {
  364. base.RaiseExceptionIfNecessary();
  365. return ((Excercise7.DictionarySuggestService.WordDefinition)(this.results[0]));
  366. }
  367. }
  368. }
  369. [System.Diagnostics.DebuggerStepThroughAttribute()]
  370. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  371. public partial class StrategyListCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  372. private object[] results;
  373. public StrategyListCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  374. base(exception, cancelled, userState) {
  375. this.results = results;
  376. }
  377. public Strategy[] Result {
  378. get {
  379. base.RaiseExceptionIfNecessary();
  380. return ((Strategy[])(this.results[0]));
  381. }
  382. }
  383. }
  384. [System.Diagnostics.DebuggerStepThroughAttribute()]
  385. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  386. public partial class MatchCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  387. private object[] results;
  388. public MatchCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  389. base(exception, cancelled, userState) {
  390. this.results = results;
  391. }
  392. public DictionaryWord[] Result {
  393. get {
  394. base.RaiseExceptionIfNecessary();
  395. return ((DictionaryWord[])(this.results[0]));
  396. }
  397. }
  398. }
  399. [System.Diagnostics.DebuggerStepThroughAttribute()]
  400. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  401. public partial class MatchInDictCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
  402. private object[] results;
  403. public MatchInDictCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
  404. base(exception, cancelled, userState) {
  405. this.results = results;
  406. }
  407. public DictionaryWord[] Result {
  408. get {
  409. base.RaiseExceptionIfNecessary();
  410. return ((DictionaryWord[])(this.results[0]));
  411. }
  412. }
  413. }
  414. [System.Diagnostics.DebuggerStepThroughAttribute()]
  415. [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
  416. public partial class DictServiceSoapClient : System.ServiceModel.ClientBase<Excercise7.DictionarySuggestService.DictServiceSoap>, Excercise7.DictionarySuggestService.DictServiceSoap {
  417. private BeginOperationDelegate onBeginServerInfoDelegate;
  418. private EndOperationDelegate onEndServerInfoDelegate;
  419. private System.Threading.SendOrPostCallback onServerInfoCompletedDelegate;
  420. private BeginOperationDelegate onBeginDictionaryListDelegate;
  421. private EndOperationDelegate onEndDictionaryListDelegate;
  422. private System.Threading.SendOrPostCallback onDictionaryListCompletedDelegate;
  423. private BeginOperationDelegate onBeginDictionaryListExtendedDelegate;
  424. private EndOperationDelegate onEndDictionaryListExtendedDelegate;
  425. private System.Threading.SendOrPostCallback onDictionaryListExtendedCompletedDelegate;
  426. private BeginOperationDelegate onBeginDictionaryInfoDelegate;
  427. private EndOperationDelegate onEndDictionaryInfoDelegate;
  428. private System.Threading.SendOrPostCallback onDictionaryInfoCompletedDelegate;
  429. private BeginOperationDelegate onBeginDefineDelegate;
  430. private EndOperationDelegate onEndDefineDelegate;
  431. private System.Threading.SendOrPostCallback onDefineCompletedDelegate;
  432. private BeginOperationDelegate onBeginDefineInDictDelegate;
  433. private EndOperationDelegate onEndDefineInDictDelegate;
  434. private System.Threading.SendOrPostCallback onDefineInDictCompletedDelegate;
  435. private BeginOperationDelegate onBeginStrategyListDelegate;
  436. private EndOperationDelegate onEndStrategyListDelegate;
  437. private System.Threading.SendOrPostCallback onStrategyListCompletedDelegate;
  438. private BeginOperationDelegate onBeginMatchDelegate;
  439. private EndOperationDelegate onEndMatchDelegate;
  440. private System.Threading.SendOrPostCallback onMatchCompletedDelegate;
  441. private BeginOperationDelegate onBeginMatchInDictDelegate;
  442. private EndOperationDelegate onEndMatchInDictDelegate;
  443. private System.Threading.SendOrPostCallback onMatchInDictCompletedDelegate;
  444. public DictServiceSoapClient() {
  445. }
  446. public DictServiceSoapClient(string endpointConfigurationName) :
  447. base(endpointConfigurationName) {
  448. }
  449. public DictServiceSoapClient(string endpointConfigurationName, string remoteAddress) :
  450. base(endpointConfigurationName, remoteAddress) {
  451. }
  452. public DictServiceSoapClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
  453. base(endpointConfigurationName, remoteAddress) {
  454. }
  455. public DictServiceSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
  456. base(binding, remoteAddress) {
  457. }
  458. public event System.EventHandler<ServerInfoCompletedEventArgs> ServerInfoCompleted;
  459. public event System.EventHandler<DictionaryListCompletedEventArgs> DictionaryListCompleted;
  460. public event System.EventHandler<DictionaryListExtendedCompletedEventArgs> DictionaryListExtendedCompleted;
  461. public event System.EventHandler<DictionaryInfoCompletedEventArgs> DictionaryInfoCompleted;
  462. public event System.EventHandler<DefineCompletedEventArgs> DefineCompleted;
  463. public event System.EventHandler<DefineInDictCompletedEventArgs> DefineInDictCompleted;
  464. public event System.EventHandler<StrategyListCompletedEventArgs> StrategyListCompleted;
  465. public event System.EventHandler<MatchCompletedEventArgs> MatchCompleted;
  466. public event System.EventHandler<MatchInDictCompletedEventArgs> MatchInDictCompleted;
  467. public string ServerInfo() {
  468. return base.Channel.ServerInfo();
  469. }
  470. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  471. public System.IAsyncResult BeginServerInfo(System.AsyncCallback callback, object asyncState) {
  472. return base.Channel.BeginServerInfo(callback, asyncState);
  473. }
  474. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  475. public string EndServerInfo(System.IAsyncResult result) {
  476. return base.Channel.EndServerInfo(result);
  477. }
  478. private System.IAsyncResult OnBeginServerInfo(object[] inValues, System.AsyncCallback callback, object asyncState) {
  479. return this.BeginServerInfo(callback, asyncState);
  480. }
  481. private object[] OnEndServerInfo(System.IAsyncResult result) {
  482. string retVal = this.EndServerInfo(result);
  483. return new object[] {
  484. retVal};
  485. }
  486. private void OnServerInfoCompleted(object state) {
  487. if ((this.ServerInfoCompleted != null)) {
  488. InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
  489. this.ServerInfoCompleted(this, new ServerInfoCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
  490. }
  491. }
  492. public void ServerInfoAsync() {
  493. this.ServerInfoAsync(null);
  494. }
  495. public void ServerInfoAsync(object userState) {
  496. if ((this.onBeginServerInfoDelegate == null)) {
  497. this.onBeginServerInfoDelegate = new BeginOperationDelegate(this.OnBeginServerInfo);
  498. }
  499. if ((this.onEndServerInfoDelegate == null)) {
  500. this.onEndServerInfoDelegate = new EndOperationDelegate(this.OnEndServerInfo);
  501. }
  502. if ((this.onServerInfoCompletedDelegate == null)) {
  503. this.onServerInfoCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnServerInfoCompleted);
  504. }
  505. base.InvokeAsync(this.onBeginServerInfoDelegate, null, this.onEndServerInfoDelegate, this.onServerInfoCompletedDelegate, userState);
  506. }
  507. public Dictionary[] DictionaryList() {
  508. return base.Channel.DictionaryList();
  509. }
  510. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  511. public System.IAsyncResult BeginDictionaryList(System.AsyncCallback callback, object asyncState) {
  512. return base.Channel.BeginDictionaryList(callback, asyncState);
  513. }
  514. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  515. public Dictionary[] EndDictionaryList(System.IAsyncResult result) {
  516. return base.Channel.EndDictionaryList(result);
  517. }
  518. private System.IAsyncResult OnBeginDictionaryList(object[] inValues, System.AsyncCallback callback, object asyncState) {
  519. return this.BeginDictionaryList(callback, asyncState);
  520. }
  521. private object[] OnEndDictionaryList(System.IAsyncResult result) {
  522. Dictionary[] retVal = this.EndDictionaryList(result);
  523. return new object[] {
  524. retVal};
  525. }
  526. private void OnDictionaryListCompleted(object state) {
  527. if ((this.DictionaryListCompleted != null)) {
  528. InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
  529. this.DictionaryListCompleted(this, new DictionaryListCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
  530. }
  531. }
  532. public void DictionaryListAsync() {
  533. this.DictionaryListAsync(null);
  534. }
  535. public void DictionaryListAsync(object userState) {
  536. if ((this.onBeginDictionaryListDelegate == null)) {
  537. this.onBeginDictionaryListDelegate = new BeginOperationDelegate(this.OnBeginDictionaryList);
  538. }
  539. if ((this.onEndDictionaryListDelegate == null)) {
  540. this.onEndDictionaryListDelegate = new EndOperationDelegate(this.OnEndDictionaryList);
  541. }
  542. if ((this.onDictionaryListCompletedDelegate == null)) {
  543. this.onDictionaryListCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnDictionaryListCompleted);
  544. }
  545. base.InvokeAsync(this.onBeginDictionaryListDelegate, null, this.onEndDictionaryListDelegate, this.onDictionaryListCompletedDelegate, userState);
  546. }
  547. public Dictionary[] DictionaryListExtended() {
  548. return base.Channel.DictionaryListExtended();
  549. }
  550. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  551. public System.IAsyncResult BeginDictionaryListExtended(System.AsyncCallback callback, object asyncState) {
  552. return base.Channel.BeginDictionaryListExtended(callback, asyncState);
  553. }
  554. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  555. public Dictionary[] EndDictionaryListExtended(System.IAsyncResult result) {
  556. return base.Channel.EndDictionaryListExtended(result);
  557. }
  558. private System.IAsyncResult OnBeginDictionaryListExtended(object[] inValues, System.AsyncCallback callback, object asyncState) {
  559. return this.BeginDictionaryListExtended(callback, asyncState);
  560. }
  561. private object[] OnEndDictionaryListExtended(System.IAsyncResult result) {
  562. Dictionary[] retVal = this.EndDictionaryListExtended(result);
  563. return new object[] {
  564. retVal};
  565. }
  566. private void OnDictionaryListExtendedCompleted(object state) {
  567. if ((this.DictionaryListExtendedCompleted != null)) {
  568. InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
  569. this.DictionaryListExtendedCompleted(this, new DictionaryListExtendedCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
  570. }
  571. }
  572. public void DictionaryListExtendedAsync() {
  573. this.DictionaryListExtendedAsync(null);
  574. }
  575. public void DictionaryListExtendedAsync(object userState) {
  576. if ((this.onBeginDictionaryListExtendedDelegate == null)) {
  577. this.onBeginDictionaryListExtendedDelegate = new BeginOperationDelegate(this.OnBeginDictionaryListExtended);
  578. }
  579. if ((this.onEndDictionaryListExtendedDelegate == null)) {
  580. this.onEndDictionaryListExtendedDelegate = new EndOperationDelegate(this.OnEndDictionaryListExtended);
  581. }
  582. if ((this.onDictionaryListExtendedCompletedDelegate == null)) {
  583. this.onDictionaryListExtendedCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnDictionaryListExtendedCompleted);
  584. }
  585. base.InvokeAsync(this.onBeginDictionaryListExtendedDelegate, null, this.onEndDictionaryListExtendedDelegate, this.onDictionaryListExtendedCompletedDelegate, userState);
  586. }
  587. public string DictionaryInfo(string dictId) {
  588. return base.Channel.DictionaryInfo(dictId);
  589. }
  590. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  591. public System.IAsyncResult BeginDictionaryInfo(string dictId, System.AsyncCallback callback, object asyncState) {
  592. return base.Channel.BeginDictionaryInfo(dictId, callback, asyncState);
  593. }
  594. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  595. public string EndDictionaryInfo(System.IAsyncResult result) {
  596. return base.Channel.EndDictionaryInfo(result);
  597. }
  598. private System.IAsyncResult OnBeginDictionaryInfo(object[] inValues, System.AsyncCallback callback, object asyncState) {
  599. string dictId = ((string)(inValues[0]));
  600. return this.BeginDictionaryInfo(dictId, callback, asyncState);
  601. }
  602. private object[] OnEndDictionaryInfo(System.IAsyncResult result) {
  603. string retVal = this.EndDictionaryInfo(result);
  604. return new object[] {
  605. retVal};
  606. }
  607. private void OnDictionaryInfoCompleted(object state) {
  608. if ((this.DictionaryInfoCompleted != null)) {
  609. InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
  610. this.DictionaryInfoCompleted(this, new DictionaryInfoCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
  611. }
  612. }
  613. public void DictionaryInfoAsync(string dictId) {
  614. this.DictionaryInfoAsync(dictId, null);
  615. }
  616. public void DictionaryInfoAsync(string dictId, object userState) {
  617. if ((this.onBeginDictionaryInfoDelegate == null)) {
  618. this.onBeginDictionaryInfoDelegate = new BeginOperationDelegate(this.OnBeginDictionaryInfo);
  619. }
  620. if ((this.onEndDictionaryInfoDelegate == null)) {
  621. this.onEndDictionaryInfoDelegate = new EndOperationDelegate(this.OnEndDictionaryInfo);
  622. }
  623. if ((this.onDictionaryInfoCompletedDelegate == null)) {
  624. this.onDictionaryInfoCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnDictionaryInfoCompleted);
  625. }
  626. base.InvokeAsync(this.onBeginDictionaryInfoDelegate, new object[] {
  627. dictId}, this.onEndDictionaryInfoDelegate, this.onDictionaryInfoCompletedDelegate, userState);
  628. }
  629. public Excercise7.DictionarySuggestService.WordDefinition Define(string word) {
  630. return base.Channel.Define(word);
  631. }
  632. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  633. public System.IAsyncResult BeginDefine(string word, System.AsyncCallback callback, object asyncState) {
  634. return base.Channel.BeginDefine(word, callback, asyncState);
  635. }
  636. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  637. public Excercise7.DictionarySuggestService.WordDefinition EndDefine(System.IAsyncResult result) {
  638. return base.Channel.EndDefine(result);
  639. }
  640. private System.IAsyncResult OnBeginDefine(object[] inValues, System.AsyncCallback callback, object asyncState) {
  641. string word = ((string)(inValues[0]));
  642. return this.BeginDefine(word, callback, asyncState);
  643. }
  644. private object[] OnEndDefine(System.IAsyncResult result) {
  645. Excercise7.DictionarySuggestService.WordDefinition retVal = this.EndDefine(result);
  646. return new object[] {
  647. retVal};
  648. }
  649. private void OnDefineCompleted(object state) {
  650. if ((this.DefineCompleted != null)) {
  651. InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
  652. this.DefineCompleted(this, new DefineCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
  653. }
  654. }
  655. public void DefineAsync(string word) {
  656. this.DefineAsync(word, null);
  657. }
  658. public void DefineAsync(string word, object userState) {
  659. if ((this.onBeginDefineDelegate == null)) {
  660. this.onBeginDefineDelegate = new BeginOperationDelegate(this.OnBeginDefine);
  661. }
  662. if ((this.onEndDefineDelegate == null)) {
  663. this.onEndDefineDelegate = new EndOperationDelegate(this.OnEndDefine);
  664. }
  665. if ((this.onDefineCompletedDelegate == null)) {
  666. this.onDefineCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnDefineCompleted);
  667. }
  668. base.InvokeAsync(this.onBeginDefineDelegate, new object[] {
  669. word}, this.onEndDefineDelegate, this.onDefineCompletedDelegate, userState);
  670. }
  671. public Excercise7.DictionarySuggestService.WordDefinition DefineInDict(string dictId, string word) {
  672. return base.Channel.DefineInDict(dictId, word);
  673. }
  674. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  675. public System.IAsyncResult BeginDefineInDict(string dictId, string word, System.AsyncCallback callback, object asyncState) {
  676. return base.Channel.BeginDefineInDict(dictId, word, callback, asyncState);
  677. }
  678. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  679. public Excercise7.DictionarySuggestService.WordDefinition EndDefineInDict(System.IAsyncResult result) {
  680. return base.Channel.EndDefineInDict(result);
  681. }
  682. private System.IAsyncResult OnBeginDefineInDict(object[] inValues, System.AsyncCallback callback, object asyncState) {
  683. string dictId = ((string)(inValues[0]));
  684. string word = ((string)(inValues[1]));
  685. return this.BeginDefineInDict(dictId, word, callback, asyncState);
  686. }
  687. private object[] OnEndDefineInDict(System.IAsyncResult result) {
  688. Excercise7.DictionarySuggestService.WordDefinition retVal = this.EndDefineInDict(result);
  689. return new object[] {
  690. retVal};
  691. }
  692. private void OnDefineInDictCompleted(object state) {
  693. if ((this.DefineInDictCompleted != null)) {
  694. InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
  695. this.DefineInDictCompleted(this, new DefineInDictCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
  696. }
  697. }
  698. public void DefineInDictAsync(string dictId, string word) {
  699. this.DefineInDictAsync(dictId, word, null);
  700. }
  701. public void DefineInDictAsync(string dictId, string word, object userState) {
  702. if ((this.onBeginDefineInDictDelegate == null)) {
  703. this.onBeginDefineInDictDelegate = new BeginOperationDelegate(this.OnBeginDefineInDict);
  704. }
  705. if ((this.onEndDefineInDictDelegate == null)) {
  706. this.onEndDefineInDictDelegate = new EndOperationDelegate(this.OnEndDefineInDict);
  707. }
  708. if ((this.onDefineInDictCompletedDelegate == null)) {
  709. this.onDefineInDictCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnDefineInDictCompleted);
  710. }
  711. base.InvokeAsync(this.onBeginDefineInDictDelegate, new object[] {
  712. dictId,
  713. word}, this.onEndDefineInDictDelegate, this.onDefineInDictCompletedDelegate, userState);
  714. }
  715. public Strategy[] StrategyList() {
  716. return base.Channel.StrategyList();
  717. }
  718. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  719. public System.IAsyncResult BeginStrategyList(System.AsyncCallback callback, object asyncState) {
  720. return base.Channel.BeginStrategyList(callback, asyncState);
  721. }
  722. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  723. public Strategy[] EndStrategyList(System.IAsyncResult result) {
  724. return base.Channel.EndStrategyList(result);
  725. }
  726. private System.IAsyncResult OnBeginStrategyList(object[] inValues, System.AsyncCallback callback, object asyncState) {
  727. return this.BeginStrategyList(callback, asyncState);
  728. }
  729. private object[] OnEndStrategyList(System.IAsyncResult result) {
  730. Strategy[] retVal = this.EndStrategyList(result);
  731. return new object[] {
  732. retVal};
  733. }
  734. private void OnStrategyListCompleted(object state) {
  735. if ((this.StrategyListCompleted != null)) {
  736. InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
  737. this.StrategyListCompleted(this, new StrategyListCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
  738. }
  739. }
  740. public void StrategyListAsync() {
  741. this.StrategyListAsync(null);
  742. }
  743. public void StrategyListAsync(object userState) {
  744. if ((this.onBeginStrategyListDelegate == null)) {
  745. this.onBeginStrategyListDelegate = new BeginOperationDelegate(this.OnBeginStrategyList);
  746. }
  747. if ((this.onEndStrategyListDelegate == null)) {
  748. this.onEndStrategyListDelegate = new EndOperationDelegate(this.OnEndStrategyList);
  749. }
  750. if ((this.onStrategyListCompletedDelegate == null)) {
  751. this.onStrategyListCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnStrategyListCompleted);
  752. }
  753. base.InvokeAsync(this.onBeginStrategyListDelegate, null, this.onEndStrategyListDelegate, this.onStrategyListCompletedDelegate, userState);
  754. }
  755. public DictionaryWord[] Match(string word, string strategy) {
  756. return base.Channel.Match(word, strategy);
  757. }
  758. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  759. public System.IAsyncResult BeginMatch(string word, string strategy, System.AsyncCallback callback, object asyncState) {
  760. return base.Channel.BeginMatch(word, strategy, callback, asyncState);
  761. }
  762. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  763. public DictionaryWord[] EndMatch(System.IAsyncResult result) {
  764. return base.Channel.EndMatch(result);
  765. }
  766. private System.IAsyncResult OnBeginMatch(object[] inValues, System.AsyncCallback callback, object asyncState) {
  767. string word = ((string)(inValues[0]));
  768. string strategy = ((string)(inValues[1]));
  769. return this.BeginMatch(word, strategy, callback, asyncState);
  770. }
  771. private object[] OnEndMatch(System.IAsyncResult result) {
  772. DictionaryWord[] retVal = this.EndMatch(result);
  773. return new object[] {
  774. retVal};
  775. }
  776. private void OnMatchCompleted(object state) {
  777. if ((this.MatchCompleted != null)) {
  778. InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
  779. this.MatchCompleted(this, new MatchCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
  780. }
  781. }
  782. public void MatchAsync(string word, string strategy) {
  783. this.MatchAsync(word, strategy, null);
  784. }
  785. public void MatchAsync(string word, string strategy, object userState) {
  786. if ((this.onBeginMatchDelegate == null)) {
  787. this.onBeginMatchDelegate = new BeginOperationDelegate(this.OnBeginMatch);
  788. }
  789. if ((this.onEndMatchDelegate == null)) {
  790. this.onEndMatchDelegate = new EndOperationDelegate(this.OnEndMatch);
  791. }
  792. if ((this.onMatchCompletedDelegate == null)) {
  793. this.onMatchCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnMatchCompleted);
  794. }
  795. base.InvokeAsync(this.onBeginMatchDelegate, new object[] {
  796. word,
  797. strategy}, this.onEndMatchDelegate, this.onMatchCompletedDelegate, userState);
  798. }
  799. public DictionaryWord[] MatchInDict(string dictId, string word, string strategy) {
  800. return base.Channel.MatchInDict(dictId, word, strategy);
  801. }
  802. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  803. public System.IAsyncResult BeginMatchInDict(string dictId, string word, string strategy, System.AsyncCallback callback, object asyncState) {
  804. return base.Channel.BeginMatchInDict(dictId, word, strategy, callback, asyncState);
  805. }
  806. [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
  807. public DictionaryWord[] EndMatchInDict(System.IAsyncResult result) {
  808. return base.Channel.EndMatchInDict(result);
  809. }
  810. private System.IAsyncResult OnBeginMatchInDict(object[] inValues, System.AsyncCallback callback, object asyncState) {
  811. string dictId = ((string)(inValues[0]));
  812. string word = ((string)(inValues[1]));
  813. string strategy = ((string)(inValues[2]));
  814. return this.BeginMatchInDict(dictId, word, strategy, callback, asyncState);
  815. }
  816. private object[] OnEndMatchInDict(System.IAsyncResult result) {
  817. DictionaryWord[] retVal = this.EndMatchInDict(result);
  818. return new object[] {
  819. retVal};
  820. }
  821. private void OnMatchInDictCompleted(object state) {
  822. if ((this.MatchInDictCompleted != null)) {
  823. InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state));
  824. this.MatchInDictCompleted(this, new MatchInDictCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState));
  825. }
  826. }
  827. public void MatchInDictAsync(string dictId, string word, string strategy) {
  828. this.MatchInDictAsync(dictId, word, strategy, null);
  829. }
  830. public void MatchInDictAsync(string dictId, string word, string strategy, object userState) {
  831. if ((this.onBeginMatchInDictDelegate == null)) {
  832. this.onBeginMatchInDictDelegate = new BeginOperationDelegate(this.OnBeginMatchInDict);
  833. }
  834. if ((this.onEndMatchInDictDelegate == null)) {
  835. this.onEndMatchInDictDelegate = new EndOperationDelegate(this.OnEndMatchInDict);
  836. }
  837. if ((this.onMatchInDictCompletedDelegate == null)) {
  838. this.onMatchInDictCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnMatchInDictCompleted);
  839. }
  840. base.InvokeAsync(this.onBeginMatchInDictDelegate, new object[] {
  841. dictId,
  842. word,
  843. strategy}, this.onEndMatchInDictDelegate, this.onMatchInDictCompletedDelegate, userState);
  844. }
  845. }
  846. }