コード例 #1
0
 public ProcessWithNoTransaction(SqlConnectionFactory connectionFactory, TableBasedQueueCache tableBasedQueueCache)
     : base(tableBasedQueueCache)
 {
     this.connectionFactory = connectionFactory;
 }
コード例 #2
0
 public QueueCreator(SqlConnectionFactory connectionFactory, QueueAddressTranslator addressTranslator, bool createMessageBodyColumn = false)
 {
     this.connectionFactory       = connectionFactory;
     this.addressTranslator       = addressTranslator;
     this.createMessageBodyColumn = createMessageBodyColumn;
 }
コード例 #3
0
        static ReceiveStrategy SelectReceiveStrategy(TransportTransactionMode minimumConsistencyGuarantee, TransactionOptions options, SqlConnectionFactory connectionFactory)
        {
            if (minimumConsistencyGuarantee == TransportTransactionMode.TransactionScope)
            {
                return(new ProcessWithTransactionScope(options, connectionFactory, new FailureInfoStorage(10000)));
            }

            if (minimumConsistencyGuarantee == TransportTransactionMode.SendsAtomicWithReceive)
            {
                return(new ProcessWithNativeTransaction(options, connectionFactory, new FailureInfoStorage(10000)));
            }

            if (minimumConsistencyGuarantee == TransportTransactionMode.ReceiveOnly)
            {
                return(new ProcessWithNativeTransaction(options, connectionFactory, new FailureInfoStorage(10000), transactionForReceiveOnly: true));
            }

            return(new ProcessWithNoTransaction(connectionFactory));
        }
コード例 #4
0
 public ProcessWithTransactionScope(TransactionOptions transactionOptions, SqlConnectionFactory connectionFactory, FailureInfoStorage failureInfoStorage)
 {
     this.transactionOptions = transactionOptions;
     this.connectionFactory  = connectionFactory;
     this.failureInfoStorage = failureInfoStorage;
 }
コード例 #5
0
 public QueuePeeker(SqlConnectionFactory connectionFactory, QueuePeekerOptions settings)
 {
     this.connectionFactory = connectionFactory;
     this.settings          = settings;
 }
コード例 #6
0
 public QueueCreator(SqlConnectionFactory connectionFactory, QueueAddressTranslator addressTranslator)
 {
     this.connectionFactory = connectionFactory;
     this.addressTranslator = addressTranslator;
 }
コード例 #7
0
 public SubscriptionTableCreator(QualifiedSubscriptionTableName tableName, SqlConnectionFactory connectionFactory)
 {
     this.tableName         = tableName;
     this.connectionFactory = connectionFactory;
 }
コード例 #8
0
 public TableBasedQueueDispatcher(SqlConnectionFactory connectionFactory, ITableBasedQueueOperationsReader queueOperationsReader)
 {
     this.connectionFactory     = connectionFactory;
     this.queueOperationsReader = queueOperationsReader;
 }
コード例 #9
0
 public MessageDispatcher(QueueAddressTranslator addressTranslator, IMulticastToUnicastConverter multicastToUnicastConverter, TableBasedQueueCache tableBasedQueueCache, IDelayedMessageStore delayedMessageTable, SqlConnectionFactory connectionFactory)
 {
     this.addressTranslator           = addressTranslator;
     this.multicastToUnicastConverter = multicastToUnicastConverter;
     this.tableBasedQueueCache        = tableBasedQueueCache;
     this.delayedMessageTable         = delayedMessageTable;
     this.connectionFactory           = connectionFactory;
 }
コード例 #10
0
 public QueuePurger(SqlConnectionFactory connectionFactory)
 {
     this.connectionFactory = connectionFactory;
 }
コード例 #11
0
 public ProcessWithNoTransaction(SqlConnectionFactory connectionFactory)
 {
     this.connectionFactory = connectionFactory;
 }
コード例 #12
0
 public DelayedDeliveryQueueCreator(SqlConnectionFactory connectionFactory, ICreateQueues queueCreator, CanonicalQueueAddress delayedMessageTable)
 {
     this.connectionFactory   = connectionFactory;
     this.queueCreator        = queueCreator;
     this.delayedMessageTable = delayedMessageTable;
 }