3
Answers

EventHubsConnectionStringBuilder

Guest User

Guest User

5y
1k
1
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 (3)