Gcobani Mkontwana

Gcobani Mkontwana

  • 1k
  • 1.4k
  • 191.1k

EventHubsConnectionStringBuilder

Sep 10 2019 4:39 AM
Hi Team
 
I want to pass 3 arguments that i declared them as private readonly objects.
 
Inside my main class method i get the error on EventHubsConnectionStringBuilder. e.g
 
private readonly static s_eventHubsCompatibleEndpoint = "'sb://iothb-ns.. ;
private readonly static s_eventHubsCompatiblePath ="testiothubs";
private static EventHubClient s_eventHubClient; 
 
 
private static async Task Main(string[] args) { 
 
var connectionString = new EventHubsConnectionStringBuilder(s_eventHubsCompatibleEndpoint, s_eventHubsCompatiblePath,
s_eventHubClient = EventHubClient.CreateFromConnectionString(connectionString.ToString()));
 
"error EventHubsConnectionStringBuilder does not contain constructor for 3 argument. What am i missing here please help. Im trying to readmessage2device. 

Answers (2)