private static bool OnAnonymousMessageReceived( int messageId, IGroup source, IAnonymousMember sender, string messageContent) { var e = new AnonymousMessageReceivedEventArgs( new MessageCore(messageId, messageContent), source, sender); try { Instance.AnonymousMessageReceived?.Invoke(Instance, e); } catch (Exception ex) { Logger.LogUnhandledException(ex); } return(e.Handled); }
public AnonymousMessageReceivedEventArgs(Message message, IGroup source, IAnonymousMember sender) { Message = message; Source = source; Sender = sender; }