private FaultTolerantAmqpObject <AmqpConnection> SetupConnectionManager() { var tokenProvider = TokenProvider.CreateSharedAccessSignatureTokenProvider(_config.KeyName, _config.SharedAccessSignature, TimeSpan.FromDays(1)); var connection = new ServiceBusConnection(_config.Endpoint, TransportType.Amqp, RetryPolicy.Default) { TokenProvider = tokenProvider }; var prop = connection.GetType().GetProperty("ConnectionManager", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance); return(prop.GetValue(connection) as FaultTolerantAmqpObject <AmqpConnection>); }