Исходный код вики Сценарии
Версия 1.2 от Alexandr Fokin на 2024/12/24 14:57
Последние авторы
author | version | line-number | content |
---|---|---|---|
1 | {{code language="c#"}} | ||
2 | public async Task GetSchemaAsync(int schemaId) | ||
3 | { | ||
4 | Confluent.SchemaRegistry.ISchemaRegistryClient client = new Confluent.SchemaRegistry.CachedSchemaRegistryClient( | ||
5 | new Confluent.SchemaRegistry.SchemaRegistryConfig | ||
6 | { | ||
7 | Url = @"http://127.0.0.1:8081" | ||
8 | } | ||
9 | ); | ||
10 | |||
11 | var schema = await client.GetSchemaAsync(schemaId); | ||
12 | } | ||
13 | {{/code}} |