IEventPatternSource.cs 782 B

1234567891011121314151617181920212223
  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 HAS_WINRT
  5. using Windows.Foundation;
  6. namespace System.Reactive
  7. {
  8. /// <summary>
  9. /// Represents a data stream signaling its elements by means of an event.
  10. /// </summary>
  11. /// <typeparam name="TSender">Sender type.</typeparam>
  12. /// <typeparam name="TEventArgs">Event arguments type.</typeparam>
  13. public interface IEventPatternSource<TSender, TEventArgs>
  14. {
  15. /// <summary>
  16. /// Event signaling the next element in the data stream.
  17. /// </summary>
  18. event TypedEventHandler<TSender, TEventArgs> OnNext;
  19. }
  20. }
  21. #endif