public void SendIf(LegacyEvent legacyEvent, SendMessageRule sendMessageRule)
 {
     if (sendMessageRule.ShouldSend(legacyEvent))
     {
         messagePublisher.Publish(sendMessageRule.GetMessage(legacyEvent));
     }
 }
 public bool ShouldSend(LegacyEvent legacyEvent) =>
 !singleOfficeSendMessageRule.ShouldSend(legacyEvent) &&
 !legacyEvent.IsPerformedOnOfficeProcessed;
 public bool ShouldSend(LegacyEvent legacyEvent) =>
 !singleUserSendMessageRule.ShouldSend(legacyEvent) &&
 !legacyEvent.IsPerformedOnUserProcessed;