示例#1
0
 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));
 }
示例#2
0
 public TextChatMessageEventPublisher([NotNull] ITextChatEventFactory formattedTextChatFactory)
 {
     FormattedTextChatFactory = formattedTextChatFactory ?? throw new ArgumentNullException(nameof(formattedTextChatFactory));
 }