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