public ChatMessageRecievedDispatcherEventListener(IChatChannelJoinedEventSubscribable subscriptionService, [NotNull] IChatTextMessageRecievedEventPublisher messageRecievedPublisher, [NotNull] ITextChatEventFactory textDataFactory, [NotNull] IEntityNameQueryable nameQueryService) : base(subscriptionService) { MessageRecievedPublisher = messageRecievedPublisher ?? throw new ArgumentNullException(nameof(messageRecievedPublisher)); TextDataFactory = textDataFactory ?? throw new ArgumentNullException(nameof(textDataFactory)); NameQueryService = nameQueryService ?? throw new ArgumentNullException(nameof(nameQueryService)); }
public TextChatMessageEventPublisher([NotNull] ITextChatEventFactory formattedTextChatFactory) { FormattedTextChatFactory = formattedTextChatFactory ?? throw new ArgumentNullException(nameof(formattedTextChatFactory)); }