Skip to content

Commit

Permalink
Move MiddlewareOptionsServerBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Mar 19, 2024
1 parent a394fd7 commit 2f9b9cd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/Imageflow.Server/ImageflowMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using Imazen.Common.Storage;
using Imazen.Abstractions.BlobCache;
using Imageflow.Server.Internal;
using Imageflow.Server.LegacyOptions;
using Imazen.Abstractions.Blobs.LegacyProviders;
using Imazen.Abstractions.DependencyInjection;
using Imazen.Abstractions.Logging;
Expand Down
4 changes: 1 addition & 3 deletions src/Imageflow.Server/Internal/GlobalInfoProvider.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
using System.Reflection;
using Imazen.Abstractions.DependencyInjection;
using Imazen.Common.Helpers;
using Imazen.Common.Instrumentation.Support;
using Imazen.Common.Instrumentation.Support.InfoAccumulators;
using Imazen.Routing.Helpers;
using Imazen.Routing.HttpAbstractions;
using Imazen.Routing.Serving;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;

namespace Imageflow.Server
namespace Imageflow.Server.Internal
{
internal class GlobalInfoProvider(IImageServerContainer serviceProvider): IInfoProvider
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System.ComponentModel;
using System.Globalization;
using System.Text;
using Imageflow.Bindings;
using Imageflow.Server.Internal;
using Imazen.Abstractions.BlobCache;
using Imazen.Abstractions.Blobs.LegacyProviders;
using Imazen.Abstractions.DependencyInjection;
Expand All @@ -12,15 +10,14 @@
using Imazen.Routing.Health;
using Imazen.Routing.HttpAbstractions;
using Imazen.Routing.Layers;
using Imazen.Routing.Promises.Pipelines;
using Imazen.Routing.Promises.Pipelines.Watermarking;
using Imazen.Routing.Requests;
using Imazen.Routing.Serving;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;

namespace Imageflow.Server.LegacyOptions;
namespace Imageflow.Server.Internal;

internal class MiddlewareOptionsServerBuilder(
ImageServerContainer serverContainer,
Expand Down
1 change: 1 addition & 0 deletions src/Imazen.Routing/Health/CacheHealthStatus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ internal class CacheHealthStatus : IHostedService, IDisposable
private CacheHealthMetrics Metrics { get; init; }
private static TimeSpan Timeout => TimeSpan.FromMinutes(3);

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

private IReLogger Logger { get; }
Expand Down

0 comments on commit 2f9b9cd

Please sign in to comment.