示例#1
0
        public override ClientConfiguration Build()
        {
            var rvalue = _builder.Build();

            var settings = new Dictionary <string, string>();

            EventHubStreamProviderSettings providerSettings = new EventHubStreamProviderSettings(_providerName);

            providerSettings.WriteProperties(settings);

            EventHubCheckpointerSettings checkpoint = new EventHubCheckpointerSettings(_checkpointConnectionString, _checkpointTableName, _checkpointNamespace, _checkpointInterval);

            checkpoint.WriteProperties(settings);

            EventHubSettings eventHub = new EventHubSettings(_hubConnectionString, _consumerGroup, _path);

            eventHub.WriteProperties(settings);

            rvalue.RegisterStreamProvider <EventHubStreamProvider>(_providerName, settings);

            return(rvalue);
        }