title: How send a message from eventhub to another eventhub?
body: <p>I would like to send eventhub customer and then download it to sample data such as weather and send another eventhub. My code is not working properly. There is no error but the data are not sent to the database.</p>
  
  <pre><code>public Task ProcessEventsAsync(PartitionContext context, IEnumerable&lt;EventData&gt; messages)
          {
                  try
              {
                  foreach (EventData message in messages)
                  {
                          string data = Encoding.UTF8.GetString(message.GetBytes());
                          NewClient Client = JsonConvert.DeserializeObject&lt;NewClient&gt;(data);
                      if (Client.City != null &amp;&amp; Client.Street != null )
                      {
  
                          GoogleGeoApi GeoClient = new GoogleGeoApi();
                          GeoClient.SetCoordinates(Client.City, Client.Street);
                          WeatherApi WeatherApiobject = new WeatherApi();
                          WeatherApiobject.GetJson(GeoClient.convertlat, GeoClient.convertlng);
                          string weatherdata = WeatherApiobject.sendEvent;
                          SenderEvent NewSenderEvent = new SenderEvent();
                          NewSenderEvent.DataSender(weatherdata, ConstFile.WeatherEventHubName);
                          //StartH(ConstFile.WeatherEventHubName).Wait();
                      }
  
                      Interlocked.Increment(ref this.totalMessages);
                      this.LastMessageOffset = message.Offset;
                  }
  
                  if (this.IsClosed)
                  {
                      this.IsReceivedMessageAfterClose = true;
                  }
  
                  if (this.checkpointStopWatch.Elapsed &gt; TimeSpan.FromMinutes(1))
                  {
                      lock (this)
                      {
                          this.checkpointStopWatch.Reset();
                          return context.CheckpointAsync();
                      }
                  }
              }
              catch (Exception ex)
              {
                  Console.WriteLine("{0} &gt; Event Hub Exception: {1}", DateTime.Now, ex.Message);
              }
  
              return Task.FromResult&lt;object&gt;(null);
          }
  </code></pre>
  
  <p>I will add that my receiver eventhub looks like this:
  <a href="https://code.msdn.microsoft.com/Service-Bus-Event-Hub-45f43fc3/view/SourceCode#content" rel="nofollow">https://code.msdn.microsoft.com/Service-Bus-Event-Hub-45f43fc3/view/SourceCode#content</a></p>