コード例 #1
0
ファイル: Program.cs プロジェクト: tanyongzheng/TZ.RedisQueue
        static async Task Main(string[] args)
        {
            options.SetConfig();
            RedisQueueService = new RedisQueueService(options);
            //SendQueueTest();
            //GetMessageTest();
            //SendSortQueueTest();
            //GetSortMessageTest();
            //await SendQueueTestAsync();
            //await GetMessageTestAsync();
            await SendSortQueueTestAsync();

            //await GetSortMessageTestAsync();
            //InsertAndGetTest();
            Console.WriteLine("Hello World!");
            Console.ReadKey();
        }
コード例 #2
0
 public WeatherForecastController(ILogger <WeatherForecastController> logger,
                                  RedisQueueService redisQueueService)
 {
     _logger            = logger;
     _redisQueueService = redisQueueService;
 }
コード例 #3
0
ファイル: Tests.cs プロジェクト: schwamster/doc-stack-app-api
        public void RedisQueueService_GivenLocalhost_ReturnsExpectedIp()
        {
            var result = RedisQueueService.GetIp("localhost");

            Assert.Equal("127.0.0.1", result);
        }