示例#1
0
        public virtual async Task Handle(IChatRemovedEvent <TChatInfo> @event, IChatBusContext chatBusContext)
        {
            var notification = ChatsNotificationBuilder.BuildChatRemovedNotification(@event);

            await Notify(@event.ChatId, notification);

            await NotificationRouteService.RemoveChat(@event.ChatId);
        }
示例#2
0
 public virtual IChatRemovedNotification <ChatInfo> BuildChatRemovedNotification(IChatRemovedEvent <ChatInfo> @event)
 {
     return(new ChatRemovedNotification(@event.InitiatorUserId, @event.ChatId, @event.ChatInfo));
 }