2010-09-24から1日間の記事一覧
さて、これまでは、単一のIObservableを相手にしてきましたが、複数のIObservableを合成して使う方法を紹介したいと思います。 Merge 単純に2つのIObservableをくっつけます。 var s1 = new Subject<string>(); var s2 = new Subject<string>(); // s1とs2を1つのIObservabl</string></string>…
こんなの用意しておけばいいかなぁ。 using System; using System.Collections.Generic; using System.Linq; using System.ServiceModel.DomainServices.Client; public static class DomainContextExtensions { public static IObservable<IEnumerable<TEntity>> LoadAsObservable<TEntity></tentity></ienumerable<tentity>…