IEventPatternSource.cs 704 B

123456789101112131415161718192021
  1. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
  2. #if HAS_WINRT
  3. using Windows.Foundation;
  4. namespace System.Reactive
  5. {
  6. /// <summary>
  7. /// Represents a data stream signaling its elements by means of an event.
  8. /// </summary>
  9. /// <typeparam name="TSender">Sender type.</typeparam>
  10. /// <typeparam name="TEventArgs">Event arguments type.</typeparam>
  11. public interface IEventPatternSource<TSender, TEventArgs>
  12. {
  13. /// <summary>
  14. /// Event signaling the next element in the data stream.
  15. /// </summary>
  16. event TypedEventHandler<TSender, TEventArgs> OnNext;
  17. }
  18. }
  19. #endif