What is a good way to create an IObservable for a method?

后端 未结 5 1985
攒了一身酷
攒了一身酷 2021-02-05 11:30

Let\'s say, we have a class:

public class Foo
{
   public string Do(int param)
   {
   }
}

I\'d like to create an observable of values that are

5条回答
  •  一生所求
    2021-02-05 11:57

    I would look at the EventAggregator model. There's a great article with sample code that shows an implementation with StructureMap.

    http://www.codeproject.com/KB/architecture/event_aggregator.aspx

提交回复
热议问题