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