Exemple #1
0
        public Task StoreIncoming(SqlTransaction tx, IEnumerable <Envelope> envelopes)
        {
            var cmd = SqlServerEnvelopePersistor.BuildIncomingStorageCommand(envelopes.ToArray(), _sqlServerSettings);

            cmd.Transaction = tx;
            cmd.Connection  = tx.Connection;
            return(cmd.ExecuteNonQueryAsync());
        }
Exemple #2
0
        public SqlServerBackedDurableMessagingFactory(SqlServerSettings sqlServerSettings, ITransportLogger logger, MessagingSettings settings)
        {
            Settings           = settings;
            _sqlServerSettings = sqlServerSettings;
            _logger            = logger;
            _persistor         = new SqlServerEnvelopePersistor(sqlServerSettings);

            _retries = new EnvelopeRetries(_persistor, logger, settings);
        }