示例#1
0
 public ChatMessageHandlerTickable(IChatTextMessageRecievedEventSubscribable subscriptionService,
                                   ILog logger,
                                   [NotNull] IChatMessageBoxReciever chatReciever)
     : base(subscriptionService, false, logger)             //don't service all at once, for performance reasons.
 {
     ChatReciever = chatReciever ?? throw new ArgumentNullException(nameof(chatReciever));
 }
示例#2
0
 /// <inheritdoc />
 public ChatMessageHandlerTickable([NotNull] Queue <TextChatEventData> chatEventQueue, [NotNull] IChatMessageBoxReciever chatReciever)
 {
     ChatEventQueue = chatEventQueue ?? throw new ArgumentNullException(nameof(chatEventQueue));
     ChatReciever   = chatReciever ?? throw new ArgumentNullException(nameof(chatReciever));
 }