diff options
| author | Patrick Barron <barronpm@gmail.com> | 2020-08-24 20:34:33 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2020-08-24 20:34:33 -0400 |
| commit | 71c33d09c4a71ac9fcd390237986dee969109510 (patch) | |
| tree | 3142b903ef9e5fc4f122ef75715e1ae911792693 /MediaBrowser.Controller/Events | |
| parent | 9fa4fff15d27769d01d7badfca2b769f068beff6 (diff) | |
Document IEventConsumer
Diffstat (limited to 'MediaBrowser.Controller/Events')
| -rw-r--r-- | MediaBrowser.Controller/Events/IEventConsumer.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Events/IEventConsumer.cs b/MediaBrowser.Controller/Events/IEventConsumer.cs index 3cefe2f9c..5c4ab5d8d 100644 --- a/MediaBrowser.Controller/Events/IEventConsumer.cs +++ b/MediaBrowser.Controller/Events/IEventConsumer.cs @@ -3,9 +3,18 @@ using System.Threading.Tasks; namespace MediaBrowser.Controller.Events { + /// <summary> + /// An interface representing a type that consumes events of type <c>T</c>. + /// </summary> + /// <typeparam name="T">The type of events this consumes.</typeparam> public interface IEventConsumer<in T> where T : EventArgs { + /// <summary> + /// A method that is called when an event of type <c>T</c> is fired. + /// </summary> + /// <param name="eventArgs">The event.</param> + /// <returns>A task representing the consumption of the event.</returns> Task OnEvent(T eventArgs); } } |
