示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SqlQueueAdapter"/> class.
 /// </summary>
 /// <param name="configuration">The configuration.</param>
 /// <param name="logger">The logger.</param>
 public SqlQueueAdapter(SqlQueueConfiguration configuration, IBusLogger logger)
 {
     this._configuration = configuration;
     _serializer         = new JSONMessageSerializer();
     _connection         = new SqlConnection();
     _sqlQueueHelper     = new SqlQueueHelper();
     this._logger        = logger;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SqlQueueAdapter"/> class.
 /// </summary>
 /// <param name="configFactory">The config factory.</param>
 /// <param name="configurationName">Name of the configuration.</param>
 /// <param name="logger">The logger.</param>
 public SqlQueueAdapter(IConfigurationFactory configFactory, string configurationName, IBusLogger logger)
 {
     this._configuration = configFactory.GetConfiguration <SqlQueueConfiguration>("SqlQueueConfiguration/Queue");
     _serializer         = new JSONMessageSerializer();
     _connection         = new SqlConnection();
     _sqlQueueHelper     = new SqlQueueHelper();
     this._logger        = logger;
 }