Debian Codegraph @

external/rx/Rx/NET/Samples/HOL/CS/Excercise7/Step03/Program.cs

raw
1 using System;
2 using System.Reactive.Linq;
3 using System.Windows.Forms;
4 using System.Reactive.Disposables;
5 using Excercise7.DictionarySuggestService;
6
7 namespace Excercise7
8 {
9 class Program
10 {
11 static void Main()
12 {
13 var svc = new DictServiceSoapClient("DictServiceSoap");
14 svc.BeginMatchInDict("wn", "react", "prefix",
15 iar =>
16 {
17 var words = svc.EndMatchInDict(iar);
18 foreach (var word in words)
19 Console.WriteLine(word.Word);
20 },
21 null
22 );
23
24 Console.ReadLine();
25
26 }
27 }
28 }