コード例 #1
0
        public void Run(int messageCount, int runtime,
                        int timeOut, int workerCount, ConnectionInfoTypes type, LinqMethodTypes linqMethodTypes)
        {
            var queueName        = GenerateQueueName.Create();
            var connectionString = new ConnectionInfo(type).ConnectionString;
            var consumer         =
                new DotNetWorkQueue.IntegrationTests.Shared.ConsumerMethod.Implementation.ConsumerMethodCancelWork();

            consumer.Run <RedisQueueInit, RedisQueueCreation>(new QueueConnection(queueName, connectionString),
                                                              messageCount, runtime, timeOut, workerCount, linqMethodTypes, false, x => { },
                                                              Helpers.GenerateData, Helpers.Verify, VerifyQueueCount);
        }
コード例 #2
0
        public void Run(int messageCount, int runtime, int timeOut, int workerCount, LinqMethodTypes linqMethodTypes, bool enableChaos)
        {
            var queueName = GenerateQueueName.Create();
            var consumer  =
                new DotNetWorkQueue.IntegrationTests.Shared.ConsumerMethod.Implementation.ConsumerMethodCancelWork();

            consumer.Run <SqlServerMessageQueueInit, SqlServerMessageQueueCreation>(new QueueConnection(queueName, ConnectionInfo.ConnectionString),
                                                                                    messageCount, runtime, timeOut, workerCount, linqMethodTypes, enableChaos, x => Helpers.SetOptions(x,
                                                                                                                                                                                       true, true, false,
                                                                                                                                                                                       false,
                                                                                                                                                                                       false, true, true, false),
                                                                                    Helpers.GenerateData, Helpers.Verify, Helpers.VerifyQueueCount);
        }