title: how to consume the message from azure event hub with only subscriber?
body: <p>I send the message to azure event hub. But I am not able to download the message from event hub.</p>
  
  <pre><code>enter code here
  string eventHubConnectionString = "&lt;connection string&gt;";
  string eventHubName = "&lt;event Hub name&gt;";
  string storageAccountName = "&lt;event hub storage&gt;";
  string storageAccountKey = "&lt;storage Key&gt;";
  string storageConnectionString = string.Format("DefaultEndpointsProtocol=https;AccountName={0};AccountKey={1}",storageAccountName, storageAccountKey);
  
  
  EventProcessorHost eventProcessorHost = new EventProcessorHost("message", eventHubName,  EventHubConsumerGroup.DefaultGroupName, eventHubConnectionString, storageConnectionString);
            eventProcessorHost.RegisterEventProcessorAsync&lt;SimpleEventProcessor&gt;().Wait();
  
  
  IEventProcessor:
  enter code here
  class SimpleEventProcessor : IEventProcessor
  
  {
  
  
      Stopwatch checkpointStopWatch;
  
      async Task IEventProcessor.CloseAsync(PartitionContext context, CloseReason reason)
      {
          Console.WriteLine(string.Format("Processor Shuting Down.  Partition '{0}', Reason: '{1}'.", context.Lease.PartitionId, reason.ToString()));
          if (reason == CloseReason.Shutdown)
          {
              await context.CheckpointAsync();
          }
      }
  
      Task IEventProcessor.OpenAsync(PartitionContext context)
      {
          Console.WriteLine(string.Format("SimpleEventProcessor initialize.  Partition: '{0}', Offset: '{1}'", context.Lease.PartitionId, context.Lease.Offset));
          this.checkpointStopWatch = new Stopwatch();
          this.checkpointStopWatch.Start();
          return Task.FromResult&lt;object&gt;(null);
      }
  
      async Task IEventProcessor.ProcessEventsAsync(PartitionContext context, IEnumerable&lt;EventData&gt; messages)
      {
          foreach (EventData eventData in messages)
          {
              string data = Encoding.UTF8.GetString(eventData.GetBytes());
  
              Console.WriteLine(string.Format("Message received.  Partition: '{0}', Data: '{1}'",
                  context.Lease.PartitionId, data));
          }
  
          //Call checkpoint every 5 minutes, so that worker can resume processing from the 5 minutes back if it restarts.
          if (this.checkpointStopWatch.Elapsed &gt; TimeSpan.FromMinutes(5))
          {
              await context.CheckpointAsync();
              lock (this)
              {
                  this.checkpointStopWatch.Reset();
              }
          }
      }
  
  }
  </code></pre>
  
  <p>It show the following error
  Aggregate exception handling. One or more error occurred.
  Message details: No such host is known
  what is EventProcessor host name?</p>
  
  <p>It show error at this line:              eventProcessorHost.RegisterEventProcessorAsync().Wait();</p>
  
  <p>it is not calling IEventprocessor. Is it have any other method for consuming message from event hub?</p>