コード例 #1
0
 public static Task NotifyUserJoinedChat(this IChatNotifier notifier, string stock, string nickname)
 {
     return(notifier.NotifyAsync(stock, ChatConstants.UserJoinedActionName, nickname));
 }
コード例 #2
0
 public UserJoinedChatEventHandler(IChatNotifier notifier)
 {
     this.notifier = notifier;
 }
コード例 #3
0
 public static Task NotifyMessageSet(this IChatNotifier notifier, ChatMessage message)
 {
     return(notifier.NotifyAsync(message.Stock, ChatConstants.MessageSentActionName, message));
 }
コード例 #4
0
 public ChatMessageSentEventHandler(IUnitOfWork unitOfWork, IDateTime dateTime, IChatNotifier notifier)
 {
     this.unitOfWork = unitOfWork;
     this.dateTime   = dateTime;
     this.notifier   = notifier;
 }