Exemplo n.º 1
0
        public SqlServerQueueProvider(SqlServerQueueProviderOptions opt, IQueueConfigProvider names, ISqlServerQueueProviderMigrator migrator, ISqlCommandExecutor sqlCommandExecutor)
        {
            _config             = names;
            _migrator           = migrator;
            _sqlCommandExecutor = sqlCommandExecutor;
            _connectionString   = opt.ConnectionString;
            _canMigrateDb       = opt.CanMigrateDb;
            _canCreateDb        = opt.CanCreateDb;

            IsDequeueBlocking = true;

            _queueWorkCommand   = GetFromResource("QueueWork");
            _dequeueWorkCommand = GetFromResource("DequeueWork");
        }
 public SqlServerQueueProviderMigrator(string connectionString, IQueueConfigProvider configProvider, ISqlCommandExecutor sqlCommandExecutor)
 {
     _connectionString   = connectionString;
     _configProvider     = configProvider;
     _sqlCommandExecutor = sqlCommandExecutor;
 }