public static Task NotifyUserJoinedChat(this IChatNotifier notifier, string stock, string nickname) { return(notifier.NotifyAsync(stock, ChatConstants.UserJoinedActionName, nickname)); }
public UserJoinedChatEventHandler(IChatNotifier notifier) { this.notifier = notifier; }
public static Task NotifyMessageSet(this IChatNotifier notifier, ChatMessage message) { return(notifier.NotifyAsync(message.Stock, ChatConstants.MessageSentActionName, message)); }
public ChatMessageSentEventHandler(IUnitOfWork unitOfWork, IDateTime dateTime, IChatNotifier notifier) { this.unitOfWork = unitOfWork; this.dateTime = dateTime; this.notifier = notifier; }