Beispiel #1
0
        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();
        }
Beispiel #2
0
 public WeatherForecastController(ILogger <WeatherForecastController> logger,
                                  RedisQueueService redisQueueService)
 {
     _logger            = logger;
     _redisQueueService = redisQueueService;
 }
Beispiel #3
0
        public void RedisQueueService_GivenLocalhost_ReturnsExpectedIp()
        {
            var result = RedisQueueService.GetIp("localhost");

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