public async Task Send(ConnectionContext context, IPipe <ConnectionContext> next) { NamespaceManager namespaceManager = await context.NamespaceManager; var queueDescription = await namespaceManager.CreateQueueSafeAsync(_settings.QueueDescription); if (_subscriptionSettings.Length > 0) { NamespaceManager rootNamespaceManager = await context.RootNamespaceManager; await Task.WhenAll(_subscriptionSettings.Select(subscription => CreateSubscription(rootNamespaceManager, namespaceManager, subscription))); } context.GetOrAddPayload(() => _settings); await next.Send(context); }