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); }
public virtual IChatRemovedNotification <ChatInfo> BuildChatRemovedNotification(IChatRemovedEvent <ChatInfo> @event) { return(new ChatRemovedNotification(@event.InitiatorUserId, @event.ChatId, @event.ChatInfo)); }