Esempio n. 1
0
 public void ApplyVarConfig(Dictionary <string, string> vars)
 {
     foreach (var entry in vars)
     {
         Topic             = Topic.Replace(entry.Key, entry.Value);
         TopicRegistration = TopicRegistration.Replace(entry.Key, entry.Value);
     }
 }
        public async Task <IActionResult> RegisterTopic(TopicRegistration request)
        {
            _logger.LogInformation($"Registering topic {request.topicId.ToString()} for user {request.userId}");
            await _sender.SendMessage(new UserSubscribedToTopicEvent {
                UserId   = request.userId,
                TopicIds = request.topicId
            }, "topicsService");

            return(Ok());
        }