1
0

IObservable.cs 815 B

1234567891011121314151617181920212223242526
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the Apache 2.0 License.
  3. // See the LICENSE file in the project root for more information.
  4. #if NO_RXINTERFACES
  5. namespace System
  6. {
  7. /// <summary>
  8. /// Represents a push-style collection.
  9. /// </summary>
  10. #if !NO_VARIANCE
  11. public interface IObservable<out T>
  12. #else
  13. public interface IObservable<T>
  14. #endif
  15. {
  16. /// <summary>
  17. /// Subscribes an observer to the observable sequence.
  18. /// </summary>
  19. IDisposable Subscribe(IObserver<T> observer);
  20. }
  21. }
  22. #elif !WINDOWSPHONE7 // TypeForwardedTo is not present on Windows Phone 7 so we can't really target
  23. [assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IObservable<>))]
  24. #endif