Enable() public method

public Enable ( ) : void
return void
        private void SetupEventHubSender(JsonObject settings)
        {
            // TODO: Use Options-Class
            _eventHubSender = new EventHubSender(
                settings.GetNamedString("NamespaceName"),
                settings.GetNamedString("EventHubName"),
                settings.GetNamedString("PublisherName"),
                settings.GetNamedString("Authorization"));

            _eventHubSender.Enable();
        }
Exemplo n.º 2
0
        private void SendTestEvent(object sender, RoutedEventArgs e)
        {
            var eventHubSender = new EventHubSender(
                NamespaceTextBox.Text,
                EventHubNameTextBox.Text,
                EventHubPublisherTextBox.Text,
                EventHubSasTokenTextBox.Text);

            eventHubSender.Enable();
            eventHubSender.EnqueueEvent(new JObject());
        }
        private void SetupEventHubSender(JsonObject settings)
        {
            // TODO: Use Options-Class
            _eventHubSender = new EventHubSender(
                settings.GetNamedString("NamespaceName"),
                settings.GetNamedString("EventHubName"),
                settings.GetNamedString("PublisherName"),
                settings.GetNamedString("Authorization"));

            _eventHubSender.Enable();
        }