title: How to create MessageReceiver on subscription using Microsoft.Azure.ServiceBus
body: <p>I'm trying to replace the .NET Framework NuGet package WindowsAzure.ServiceBus with .NET Standard Microsoft.Azure.ServiceBus and I faced the problem. How to create an instance of MessageReceiver for Service Bus topic subscription? I can create it for a queue with the code:</p>
  
  <pre><code>var receiver = new MessageReceiver(connectionString, queueName);
  var bytes = receiver.ReceiveAsync().Result.Body;
  string s = Encoding.UTF8.GetString(bytes);
  Console.WriteLine(s);
  </code></pre>
  
  <p>but the MessageReceiver does not have a constructor for getting data from a Service Bus topic subscription.</p>