public SendTo ( string target, object @event ) : void | ||
target | string | |
@event | object | |
return | void |
public void SendTo(string target, object @event)
{
if (Utilities.IsAnonymousType(@event.GetType())) {
throw new InvalidOperationException(
"Anonymous types are not supported. Use Send(string, object) instead.");
}
string type = @event.GetType().Name;
SendTo(target, type, @event);
}
#endregion