MyExtensions.cs 364 B

12345678910111213141516
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Reactive.Linq;
  5. using System.Text;
  6. namespace PortableLibraryProfile7
  7. {
  8. public class MyExtensions
  9. {
  10. public static IObservable<DateTime> GetClock()
  11. {
  12. return Observable.Interval(TimeSpan.FromSeconds(1)).Select(_ => DateTime.Now);
  13. }
  14. }
  15. }