10 TIPs - To Become a Good Developer/Programmer
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
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.
Reply
Answers (
2
)
Has anyone ever worked with templates in Azure portal?
System.Net.Sockets.SocketException