Tagging interface for event handlers

Support events in the TorchAPI
Static registry, non-static registration methods.
Support unregister by assembly.
This commit is contained in:
Westin Miller
2017-10-09 00:42:21 -07:00
parent 716e6cbc04
commit 013dc43c2f
8 changed files with 130 additions and 45 deletions

View File

@@ -0,0 +1,11 @@
namespace Torch.API.Managers.Event
{
public interface IEvent
{
/// <summary>
/// An event that has been cancelled will no be processed in the default manner.
/// </summary>
/// <seealso cref="EventHandlerAttribute.SkipCancelled"/>
bool Cancelled { get; }
}
}