Skip to content

Commit 2f9b9cd

Browse files
committed
Move MiddlewareOptionsServerBuilder
1 parent a394fd7 commit 2f9b9cd

File tree

4 files changed

+3
-8
lines changed

4 files changed

+3
-8
lines changed

src/Imageflow.Server/ImageflowMiddleware.cs

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
using Imazen.Common.Storage;
1010
using Imazen.Abstractions.BlobCache;
1111
using Imageflow.Server.Internal;
12-
using Imageflow.Server.LegacyOptions;
1312
using Imazen.Abstractions.Blobs.LegacyProviders;
1413
using Imazen.Abstractions.DependencyInjection;
1514
using Imazen.Abstractions.Logging;

src/Imageflow.Server/Internal/GlobalInfoProvider.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
using System.Reflection;
22
using Imazen.Abstractions.DependencyInjection;
33
using Imazen.Common.Helpers;
4-
using Imazen.Common.Instrumentation.Support;
54
using Imazen.Common.Instrumentation.Support.InfoAccumulators;
65
using Imazen.Routing.Helpers;
76
using Imazen.Routing.HttpAbstractions;
8-
using Imazen.Routing.Serving;
97
using Microsoft.AspNetCore.Hosting;
108
using Microsoft.Extensions.DependencyInjection;
119

12-
namespace Imageflow.Server
10+
namespace Imageflow.Server.Internal
1311
{
1412
internal class GlobalInfoProvider(IImageServerContainer serviceProvider): IInfoProvider
1513
{

src/Imageflow.Server/Internal/MiddlewareOptionsServerBuilder.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
using System.ComponentModel;
21
using System.Globalization;
32
using System.Text;
43
using Imageflow.Bindings;
5-
using Imageflow.Server.Internal;
64
using Imazen.Abstractions.BlobCache;
75
using Imazen.Abstractions.Blobs.LegacyProviders;
86
using Imazen.Abstractions.DependencyInjection;
@@ -12,15 +10,14 @@
1210
using Imazen.Routing.Health;
1311
using Imazen.Routing.HttpAbstractions;
1412
using Imazen.Routing.Layers;
15-
using Imazen.Routing.Promises.Pipelines;
1613
using Imazen.Routing.Promises.Pipelines.Watermarking;
1714
using Imazen.Routing.Requests;
1815
using Imazen.Routing.Serving;
1916
using Microsoft.AspNetCore.Hosting;
2017
using Microsoft.AspNetCore.Http;
2118
using Microsoft.Extensions.DependencyInjection;
2219

23-
namespace Imageflow.Server.LegacyOptions;
20+
namespace Imageflow.Server.Internal;
2421

2522
internal class MiddlewareOptionsServerBuilder(
2623
ImageServerContainer serverContainer,

src/Imazen.Routing/Health/CacheHealthStatus.cs

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ internal class CacheHealthStatus : IHostedService, IDisposable
2020
private CacheHealthMetrics Metrics { get; init; }
2121
private static TimeSpan Timeout => TimeSpan.FromMinutes(3);
2222

23+
// TODO: NonOverlappingAsyncRunner is unreliable, remove or fix.
2324
private readonly NonOverlappingAsyncRunner<IBlobCacheHealthDetails>? healthCheckTask;
2425

2526
private IReLogger Logger { get; }

0 commit comments

Comments
 (0)