public SearchServiceStartup(IConfiguration configuration) { this.Configuration = configuration; this.demoCredential = new DemoCredential(); var computeNodeId = 100; this.responseTopicAndPartition = new TopicAndPartition( topicName: this.demoCredential.EventHubTopicNameResponses, partitionSpecification: PartitionSpecification.NewComputeNodeID(computeNodeId)); this.snapshotContainerClient = new BlobContainerClient( blobContainerUri: new Uri($"https://{this.demoCredential.BusinessDataSnapshotAccountName}.blob.core.windows.net/{this.demoCredential.BusinessDataSnapshotContainerName}/"), credential: this.demoCredential.AADServicePrincipal); }
public static IWatermarkMessageClient <T> Updates <T>(IDistributedSearchConfiguration demoCredential) => new KafkaMessagingClient <T>( demoCredential: demoCredential, topicAndPartition: new TopicAndPartition( topicName: demoCredential.EventHubTopicNameBusinessDataUpdates, partitionSpecification: PartitionSpecification.NewPartitionID(0)));