Ejemplo n.º 1
0
 internal static void OnSend <T>(T message, int channel, int bytes, int count) where T : IMessageBase
 {
     if (count > 0 && OutMessageEvent != null)
     {
         MessageInfo outMessage = new MessageInfo(message, channel, bytes, count);
         OutMessageEvent?.Invoke(outMessage);
     }
 }
Ejemplo n.º 2
0
 internal static void OnSend <T>(T message, int channel, int bytes, int count)
 {
     if (count > 0 && OutMessageEvent != null)
     {
         var outMessage = new MessageInfo(message, channel, bytes, count);
         OutMessageEvent.Invoke(outMessage);
     }
 }