public static Connection Create(Action <ConnectionConfigurationDsl> config) { return(new Connection(ConnectionConfiguration.Create(config))); }
public static Connection Create(ConnectionConfiguration channelConfiguration, Action <ConnectionConfigurationDsl> config) { config(new ConnectionConfigurationDsl(channelConfiguration)); return(new Connection(channelConfiguration)); }
public Connection(ConnectionConfiguration configuration) { _connection = new Lazy <IConnection>(() => CreateConnectionFactory(configuration).CreateConnection()); Configuration = configuration; }