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