5 implementations of ICompressionProvider
Microsoft.AspNetCore.ResponseCompression (3)
BrotliCompressionProvider.cs (1)
12public class BrotliCompressionProvider : ICompressionProvider
CompressionProviderFactory.cs (1)
13internal sealed class CompressionProviderFactory : ICompressionProvider
GzipCompressionProvider.cs (1)
12public class GzipCompressionProvider : ICompressionProvider
Microsoft.AspNetCore.ResponseCompression.Tests (1)
ResponseCompressionBodyTest.cs (1)
118private class MockCompressionProvider : ICompressionProvider
ResponseCompressionSample (1)
CustomCompressionProvider.cs (1)
8public class CustomCompressionProvider : ICompressionProvider
29 references to ICompressionProvider
Microsoft.AspNetCore.ResponseCompression (27)
CompressionProviderCollection.cs (7)
12public class CompressionProviderCollection : Collection<ICompressionProvider> 15/// Adds a type representing an <see cref="ICompressionProvider"/>. 21where TCompressionProvider : ICompressionProvider 27/// Adds a type representing an <see cref="ICompressionProvider"/>. 29/// <param name="providerType">Type representing an <see cref="ICompressionProvider"/>.</param> 37if (!typeof(ICompressionProvider).IsAssignableFrom(providerType)) 39throw new ArgumentException($"The provider must implement {nameof(ICompressionProvider)}.", nameof(providerType));
CompressionProviderFactory.cs (5)
23public ICompressionProvider CreateInstance(IServiceProvider serviceProvider) 27return (ICompressionProvider)ActivatorUtilities.CreateInstance(serviceProvider, ProviderType, Type.EmptyTypes); 30string ICompressionProvider.EncodingName 35bool ICompressionProvider.SupportsFlush 40Stream ICompressionProvider.CreateStream(Stream outputStream)
IResponseCompressionProvider.cs (1)
18ICompressionProvider? GetCompressionProvider(HttpContext context);
ResponseCompressionBody.cs (5)
22private ICompressionProvider? _compressionProvider; 202private ICompressionProvider? InitializeCompressionHeaders() 227var compressionProvider = ResolveCompressionProvider(); 249var compressionProvider = InitializeCompressionHeaders(); 258private ICompressionProvider? ResolveCompressionProvider()
ResponseCompressionOptions.cs (1)
34/// The <see cref="ICompressionProvider"/> types to use for responses.
ResponseCompressionProvider.cs (8)
19private readonly ICompressionProvider[] _providers; 41_providers = new ICompressionProvider[] 75public virtual ICompressionProvider? GetCompressionProvider(HttpContext context) 108var provider = _providers[i]; 121var provider = _providers[i]; 138ICompressionProvider? selectedProvider = null; 262public ProviderCandidate(string encodingName, double quality, int priority, ICompressionProvider? provider) 276public ICompressionProvider? Provider { get; }
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
ResponseCompressionProviderBenchmark.cs (1)
47public ICompressionProvider GetCompressionProvider()
Microsoft.AspNetCore.ResponseCompression.Tests (1)
ResponseCompressionBodyTest.cs (1)
102public ICompressionProvider GetCompressionProvider(HttpContext context)