public static Task <IConnection> CreateAsync(this ConnectionFactory connectionFactory, IEnumerable <Endpoint> endpoints)
 {
     return(connectionFactory.CreateAsync(endpoints, CancellationToken.None));
 }
 public static Task <IConnection> CreateAsync(this ConnectionFactory connectionFactory, Endpoint endpoint)
 {
     return(connectionFactory.CreateAsync(new[] { endpoint }, CancellationToken.None));
 }