IEventPatternSource.cs 755 B

123456789101112131415161718192021
  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. namespace System.Reactive
  5. {
  6. /// <summary>
  7. /// Represents a data stream signaling its elements by means of an event.
  8. /// </summary>
  9. /// <typeparam name="TEventArgs">The type of the event data generated by the event.</typeparam>
  10. public interface IEventPatternSource<TEventArgs>
  11. #if !NO_EVENTARGS_CONSTRAINT
  12. where TEventArgs : EventArgs
  13. #endif
  14. {
  15. /// <summary>
  16. /// Event signaling the next element in the data stream.
  17. /// </summary>
  18. event EventHandler<TEventArgs> OnNext;
  19. }
  20. }