Сценарии
Версия 1.2 от Alexandr Fokin на 2024/12/24 14:57
public async Task GetSchemaAsync(int schemaId)
{
Confluent.SchemaRegistry.ISchemaRegistryClient client = new Confluent.SchemaRegistry.CachedSchemaRegistryClient(
new Confluent.SchemaRegistry.SchemaRegistryConfig
{
Url = @"http://127.0.0.1:8081"
}
);
var schema = await client.GetSchemaAsync(schemaId);
}
{
Confluent.SchemaRegistry.ISchemaRegistryClient client = new Confluent.SchemaRegistry.CachedSchemaRegistryClient(
new Confluent.SchemaRegistry.SchemaRegistryConfig
{
Url = @"http://127.0.0.1:8081"
}
);
var schema = await client.GetSchemaAsync(schemaId);
}