IEventPatternSource.cs 682 B

123456789101112131415161718
  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. {
  12. /// <summary>
  13. /// Event signaling the next element in the data stream.
  14. /// </summary>
  15. event EventHandler<TEventArgs> OnNext;
  16. }
  17. }