Exemple #1
0
        public async Task RaiseAsync(NotificationMessage notification)
        {
            var brokeredMessage = MessageMapper.Map(notification);

            await _topicPublisher.SendToTopicAsync(TopicNames.Notifications, brokeredMessage);
        }
        public async Task RaiseAsync(CommandMessage command)
        {
            var brokeredMessage = MessageMapper.Map(command);

            await _topicPublisher.SendToTopicAsync(TopicNames.Commands, brokeredMessage);
        }