async Task CreateSubscription(NamespaceManager rootNamespaceManager, NamespaceManager namespaceManager, TopicSubscriptionSettings settings) { var topicDescription = await rootNamespaceManager.CreateTopicSafeAsync(settings.Topic); string queuePath = Path.Combine(namespaceManager.Address.AbsoluteUri.TrimStart('/'), _settings.QueueDescription.Path) .Replace('\\', '/'); var subscriptionName = GetSubscriptionName(namespaceManager, _settings.QueueDescription.Path); await rootNamespaceManager.CreateTopicSubscriptionSafeAsync(subscriptionName, topicDescription.Path, queuePath); }