diff --git a/MP.IOC/Components/Pages/Index.razor b/MP.IOC/Components/Pages/Index.razor index 5f20d779..7e9abb08 100644 --- a/MP.IOC/Components/Pages/Index.razor +++ b/MP.IOC/Components/Pages/Index.razor @@ -143,7 +143,7 @@ {
  • - @($"{item.Hour:yyyy-MM-dd}") + @($"{item.Hour:yyyy-MM-dd}") | @item.Destination
    @($"{item.RequestCount:N0}") diff --git a/MP.IOC/Controllers/IOBController.cs b/MP.IOC/Controllers/IOBController.cs index 2b067704..d0fd5e7f 100644 --- a/MP.IOC/Controllers/IOBController.cs +++ b/MP.IOC/Controllers/IOBController.cs @@ -42,18 +42,6 @@ namespace MP.IOC.Controllers return answ; } -#if false - /// - /// GET: IOB/ - /// - /// - [HttpGet("")] - public string alive() - { - return "OK"; - } -#endif - /// /// GET: IOB/ /// diff --git a/MP.IOC/Services/RedisWeightProvider.cs b/MP.IOC/Services/RedisWeightProvider.cs index 929f5d17..9daf4113 100644 --- a/MP.IOC/Services/RedisWeightProvider.cs +++ b/MP.IOC/Services/RedisWeightProvider.cs @@ -90,12 +90,6 @@ namespace MP.IOC.Services await foreach (var key in server.KeysAsync(pattern: $"{_keyPrefix}*")) { - //} - //Task> scanTask = await server.KeysAsync(pattern: $"{_keyPrefix}*"); - //var keys = scanTask.Result; - - //foreach (var key in keys) - //{ var methodName = KeyToString(key.ToString()); if (string.IsNullOrEmpty(methodName)) continue; @@ -114,6 +108,12 @@ namespace MP.IOC.Services result.Add(new WeightDTO { Method = methodName, OldWeight = oldW, NewWeight = newW }); } + // riordino desc x NEW poi alfabetico... + result = result + .OrderByDescending(x => x.NewWeight) + .ThenBy(x => x.Method) + .ToList(); + return result; }