IHandleWithCoroutine.cs 580 B

12345678910111213141516
  1. namespace Caliburn.Micro.Core {
  2. using System.Collections.Generic;
  3. /// <summary>
  4. /// Denotes a class which can handle a particular type of message and uses a Coroutine to do so.
  5. /// </summary>
  6. public interface IHandleWithCoroutine<TMessage> : IHandle { //don't use contravariance here
  7. /// <summary>
  8. /// Handle the message with a Coroutine.
  9. /// </summary>
  10. /// <param name="message">The message.</param>
  11. /// <returns>The coroutine to execute.</returns>
  12. IEnumerable<IResult> Handle(TMessage message);
  13. }
  14. }