コード例 #1
0
        ProcessStrategy SelectProcessStrategy(TransportTransactionMode minimumConsistencyGuarantee, TransactionOptions options, SqlConnectionFactory connectionFactory)
        {
            if (minimumConsistencyGuarantee == TransportTransactionMode.TransactionScope)
            {
                return(new ProcessWithTransactionScope(options, connectionFactory, new FailureInfoStorage(10000), tableBasedQueueCache));
            }

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

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

            return(new ProcessWithNoTransaction(connectionFactory, tableBasedQueueCache));
        }
コード例 #2
0
 public ProcessWithNoTransaction(SqlConnectionFactory connectionFactory, TableBasedQueueCache tableBasedQueueCache)
     : base(tableBasedQueueCache)
 {
     this.connectionFactory = connectionFactory;
 }
コード例 #3
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;
 }
コード例 #4
0
 public QueuePurger(SqlConnectionFactory connectionFactory)
 {
     this.connectionFactory = connectionFactory;
 }
コード例 #5
0
 public SubscriptionTableCreator(QualifiedSubscriptionTableName tableName, SqlConnectionFactory connectionFactory)
 {
     this.tableName         = tableName;
     this.connectionFactory = connectionFactory;
 }
コード例 #6
0
 public QueuePeeker(SqlConnectionFactory connectionFactory, QueuePeekerOptions settings)
 {
     this.connectionFactory = connectionFactory;
     this.settings          = settings;
 }
コード例 #7
0
 public QueueCreator(SqlConnectionFactory connectionFactory, QueueAddressTranslator addressTranslator, bool createMessageBodyColumn = false)
 {
     this.connectionFactory       = connectionFactory;
     this.addressTranslator       = addressTranslator;
     this.createMessageBodyColumn = createMessageBodyColumn;
 }