title: Azure service bus - how to add metadata to the message
body: <p>I am using .net core web app as the publisher and .net core console app as subscriber. 
  I am able to successfully pass messages between these two systems using Managed Identities - set up in Azure portal.</p>
  
  <p>My question is I need to add metadata to the the message that is being sent. How do I do that ?</p>
  
  <p>Below is my publisher code :</p>
  
  <pre><code>string data = JsonConvert.SerializeObject(payloadEvents);
  Message message = new Message(Encoding.UTF8.GetBytes(data));
  
  var tokenProvider = TokenProvider.CreateManagedIdentityTokenProvider();
  
  TopicClient sendClient = new TopicClient(_serviceBusNamespace, _topicName, tokenProvider, retryPolicy: null);
  
  await sendClient.SendAsync(message);
  
  </code></pre>