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(); }
public WeatherForecastController(ILogger <WeatherForecastController> logger, RedisQueueService redisQueueService) { _logger = logger; _redisQueueService = redisQueueService; }
public void RedisQueueService_GivenLocalhost_ReturnsExpectedIp() { var result = RedisQueueService.GetIp("localhost"); Assert.Equal("127.0.0.1", result); }