/// <summary> /// Constructor for the EventHubClient /// </summary> /// <param name="ServiceBusNamespace">Namespace of the EventHub</param> /// <param name="ServiceBusHostName">Service name of the Event Hub</param> /// <param name="EventHubType">Type of Event Hub</param> public EventHubClient(string ServiceBusNamespace, string ServiceBusHostName, EventHubType EventHubType) { this.BaseAddress = string.Format("{0}.{1}", ServiceBusNamespace, ServiceBusHostName); this.EventHubType = EventHubType; }
/// <summary> /// Constructor for the EventHubClient /// </summary> /// <param name="HostName">Full URI of host name and Namespace</param> /// <param name="EventHubType">Type of Event Hub</param> public EventHubClient(string HostName, EventHubType EventHubType) { this.BaseAddress = HostName; this.EventHubType = EventHubType; }