private async Task CreateTopic() { var management = new ManagementClient(Consts.CstrManagement); await management.CreateTopicIfNotExistsAsync( _options.TopicName, s => { s.DefaultMessageTimeToLive = Consts.DefaultMessageTimeToLive; }); }
public async static Task CreateTopicIfNotExistsAsync(this ManagementClient client, string topicName) => await client.CreateTopicIfNotExistsAsync(topicName, null);