How to do I show progress when using Reactive Extensions in C#
问题 Am using reactive extensions in C# to perform some calculations. Here is how my code looks like so far. I have tried to wrap the code around so that I can show progress while to executing a series of tasks within my Calculate method Here is the observable IObservable<ResultWithProgress<SampleResult>> Calculate(){ return Observable.Create<ResultWithProgress<SampleResult>>(obs => { var someTask = DoSomeTask1(); obs.OnNext(new ResultWithProgress(){Progress = 25, ProgressText ="Completed Task1"})