internal ServiceBusClient CreateClientFromSetting(string connection)
        {
            var connectionInfo = ResolveConnectionInformation(connection);

            return(connectionInfo.ConnectionString != null?_messagingProvider.CreateClient(connectionInfo.ConnectionString, _options.ToClientOptions())
                       : _messagingProvider.CreateClient(connectionInfo.FullyQualifiedNamespace, connectionInfo.Credential, _options.ToClientOptions()));
        }