IEventPatternSource.cs 677 B

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