40 types derived from DelegatingHandler
Binding.Http.IntegrationTests (1)
HttpBindingTestHelpers.cs (1)
35public class InterceptingHttpMessageHandler : DelegatingHandler
Binding.ReliableSession.IntegrationTests (1)
src\System.Private.ServiceModel\tests\Scenarios\Binding\Http\HttpBindingTestHelpers.cs (1)
35public class InterceptingHttpMessageHandler : DelegatingHandler
ClientSample (1)
LoggingMessageHandler.cs (1)
11internal class LoggingMessageHandler : DelegatingHandler
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceModelHttpMessageHandler.cs (1)
14public partial class ServiceModelHttpMessageHandler : DelegatingHandler
Interop.FunctionalTests (1)
Http2WebSocketInteropTests.cs (1)
189public sealed class PauseSendHandler : DelegatingHandler
Microsoft.AspNetCore.HeaderPropagation (1)
HeaderPropagationMessageHandler.cs (1)
13public class HeaderPropagationMessageHandler : DelegatingHandler
Microsoft.AspNetCore.HeaderPropagation.Tests (2)
HeaderPropagationIntegrationTest.cs (1)
228private class SimpleHandler : DelegatingHandler
HeaderPropagationMessageHandlerTest.cs (1)
259private class SimpleHandler : DelegatingHandler
Microsoft.AspNetCore.Http.Connections.Client (3)
Internal\AccessTokenHttpMessageHandler.cs (1)
12internal sealed class AccessTokenHttpMessageHandler : DelegatingHandler
Internal\Http2HttpMessageHandler.cs (1)
16internal class Http2HttpMessageHandler : DelegatingHandler
Internal\LoggingHttpMessageHandler.cs (1)
14internal sealed partial class LoggingHttpMessageHandler : DelegatingHandler
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
3596private class GetNegotiateHttpHandler : DelegatingHandler
Microsoft.AspNetCore.Identity.Test (1)
RetryHandler.cs (1)
9internal class RetryHandler : DelegatingHandler
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
ComponentRenderingFunctionalTests.cs (1)
186private class LoopHttpHandler : DelegatingHandler
TestingInfrastructureTests.cs (1)
260private class TestHandler : DelegatingHandler
Microsoft.AspNetCore.Mvc.Testing (2)
Handlers\CookieContainerHandler.cs (1)
14public class CookieContainerHandler : DelegatingHandler
Handlers\RedirectHandler.cs (1)
15public class RedirectHandler : DelegatingHandler
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Common\LoggingHandler.cs (1)
9internal sealed class LoggingHandler : DelegatingHandler
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
LoggingHandler.cs (1)
10public class LoggingHandler : DelegatingHandler
RetryHandler.cs (1)
10public class RetryHandler : DelegatingHandler
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
2970private class PollTrackingMessageHandler : DelegatingHandler
Microsoft.Extensions.Http (4)
LifetimeTrackingHttpMessageHandler.cs (1)
11internal sealed class LifetimeTrackingHttpMessageHandler : DelegatingHandler
Logging\HttpClientLoggerHandler.cs (1)
12internal sealed class HttpClientLoggerHandler : DelegatingHandler
Logging\LoggingHttpMessageHandler.cs (1)
17public class LoggingHttpMessageHandler : DelegatingHandler
Logging\LoggingScopeHttpMessageHandler.cs (1)
16public class LoggingScopeHttpMessageHandler : DelegatingHandler
Microsoft.Extensions.Http.Diagnostics (1)
Latency\Internal\HttpLatencyTelemetryHandler.cs (1)
19internal sealed class HttpLatencyTelemetryHandler : DelegatingHandler
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
NoRemoteCallHandler.cs (1)
12internal sealed class NoRemoteCallHandler : DelegatingHandler
NoRemoteCallNotSeekableHandler.cs (1)
13internal sealed class NoRemoteCallNotSeekableHandler : DelegatingHandler
Microsoft.Extensions.Http.Diagnostics.Tests (3)
Logging\Internal\NoRemoteCallHandler.cs (1)
12internal class NoRemoteCallHandler : DelegatingHandler
Logging\Internal\TestingHandlerStub.cs (1)
11public class TestingHandlerStub : DelegatingHandler
Logging\Internal\TestLoggingHandler.cs (1)
12internal sealed class TestLoggingHandler : DelegatingHandler
Microsoft.Extensions.Http.Polly (1)
PolicyHttpMessageHandler.cs (1)
74public class PolicyHttpMessageHandler : DelegatingHandler
Microsoft.Extensions.Http.Polly.Tests (2)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (2)
555private class FaultyMessageHandler : DelegatingHandler 574private class SequenceMessageHandler : DelegatingHandler
Microsoft.Extensions.Http.Resilience (1)
Resilience\ResilienceHandler.cs (1)
21public class ResilienceHandler : DelegatingHandler
Microsoft.Extensions.Http.Resilience.PerformanceTests (2)
EmptyHandler.cs (1)
10internal sealed class EmptyHandler : DelegatingHandler
NoRemoteCallHandler.cs (1)
10internal sealed class NoRemoteCallHandler : DelegatingHandler
Microsoft.Extensions.Http.Resilience.Tests (1)
Helpers\TestHandlerStub.cs (1)
12public class TestHandlerStub : DelegatingHandler
Microsoft.Extensions.ServiceDiscovery (1)
Http\ResolvingHttpDelegatingHandler.cs (1)
12internal sealed class ResolvingHttpDelegatingHandler : DelegatingHandler
System.Net.Http (1)
System\Net\Http\MessageProcessingHandler.cs (1)
14public abstract class MessageProcessingHandler : DelegatingHandler
76 references to DelegatingHandler
Aspire.Hosting (1)
Dcp\DcpKubernetesClient.cs (1)
14public DcpKubernetesClient(KubernetesClientConfiguration config, params DelegatingHandler[] handlers) : base(config, handlers)
dotnet-svcutil-lib (13)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (13)
22private static readonly Type s_delegatingHandlerType = typeof(DelegatingHandler); 26private Func<IEnumerable<DelegatingHandler>> _handlerFunc; 34/// HTTP message handler types must derive from <see cref="DelegatingHandler"/> and have a public constructor 85/// a function to create a set of <see cref="DelegatingHandler"/> instances. 87/// <param name="handlers">A function to generate an ordered list of <see cref="DelegatingHandler"/> instances 92public HttpMessageHandlerFactory(Func<IEnumerable<DelegatingHandler>> handlers) 142IEnumerable<DelegatingHandler> handlerInstances = null; 150foreach (DelegatingHandler handler in handlerInstances) 161DelegatingHandler[] instances = new DelegatingHandler[_handlerCtors.Length]; 164instances[cnt] = (DelegatingHandler)_handlerCtors[cnt].Invoke(Array.Empty<Type>()); 179foreach (DelegatingHandler handler in handlerInstances) 194private static string GetFuncDetails(Func<IEnumerable<DelegatingHandler>> func)
Keycloak.Web (1)
AuthorizationHandler.cs (1)
6public class AuthorizationHandler(IHttpContextAccessor httpContextAccessor) : DelegatingHandler
Microsoft.AspNetCore.Mvc.Testing (8)
Handlers\CookieContainerHandler.cs (1)
11/// A <see cref="DelegatingHandler"/> that manages cookies associated with one or
Handlers\RedirectHandler.cs (1)
13/// A <see cref="DelegatingHandler"/> that follows redirect responses.
WebApplicationFactory.cs (4)
474/// <param name="handlers">A list of <see cref="DelegatingHandler"/> instances to set up on the 477public HttpClient CreateDefaultClient(params DelegatingHandler[] handlers) 522/// <param name="handlers">A list of <see cref="DelegatingHandler"/> instances to set up on the 525public HttpClient CreateDefaultClient(Uri baseAddress, params DelegatingHandler[] handlers)
WebApplicationFactoryClientOptions.cs (2)
64internal DelegatingHandler[] CreateHandlers() 68IEnumerable<DelegatingHandler> CreateHandlersCore()
Microsoft.Extensions.Http (20)
DefaultHttpMessageHandlerBuilder.cs (2)
41public override IList<DelegatingHandler> AdditionalHandlers { get; } = new List<DelegatingHandler>();
DependencyInjection\HttpClientBuilderExtensions.cs (9)
68/// <param name="configureHandler">A delegate that is used to create a <see cref="DelegatingHandler"/>.</param> 74public static IHttpClientBuilder AddHttpMessageHandler(this IHttpClientBuilder builder, Func<DelegatingHandler> configureHandler) 91/// <param name="configureHandler">A delegate that is used to create a <see cref="DelegatingHandler"/>.</param> 103public static IHttpClientBuilder AddHttpMessageHandler(this IHttpClientBuilder builder, Func<IServiceProvider, DelegatingHandler> configureHandler) 122/// The type of the <see cref="DelegatingHandler"/>. The handler type must be registered as a transient service. 131where THandler : DelegatingHandler 204/// The type of the <see cref="DelegatingHandler"/>. The handler type must be registered as a transient service. 634/// <param name="configureAdditionalHandlers">A delegate that is used to configure a collection of <see cref="DelegatingHandler"/>s.</param> 636public static IHttpClientBuilder ConfigureAdditionalHttpMessageHandlers(this IHttpClientBuilder builder, Action<IList<DelegatingHandler>, IServiceProvider> configureAdditionalHandlers)
HttpMessageHandlerBuilder.cs (9)
39/// Gets a list of additional <see cref="DelegatingHandler"/> instances used to configure an 42public abstract IList<DelegatingHandler> AdditionalHandlers { get; } 72/// <param name="additionalHandlers">An ordered list of <see cref="DelegatingHandler"/> instances to be invoked as part 81protected internal static HttpMessageHandler CreateHandlerPipeline(HttpMessageHandler primaryHandler, IEnumerable<DelegatingHandler> additionalHandlers) 89IReadOnlyList<DelegatingHandler> additionalHandlersList = additionalHandlers as IReadOnlyList<DelegatingHandler> ?? additionalHandlers.ToArray(); 94DelegatingHandler handler = additionalHandlersList[i]; 106nameof(DelegatingHandler.InnerHandler), 107nameof(DelegatingHandler),
Microsoft.Extensions.Http.Diagnostics (3)
Latency\HttpClientLatencyTelemetryExtensions.cs (3)
20/// Adds a <see cref="DelegatingHandler" /> to collect latency information and enrich outgoing request log for all http clients. 51/// Adds a <see cref="DelegatingHandler" /> to collect latency information and enrich outgoing request log for all http clients. 70/// Adds a <see cref="DelegatingHandler" /> to collect latency information and enrich outgoing request log for all http clients.
Microsoft.Extensions.Http.Diagnostics.Tests (6)
Latency\Internal\HttpLatencyTelemetryHandlerTest.cs (1)
64var mockHandler = new Mock<DelegatingHandler>();
Logging\Internal\TestHttpMessageHandlerBuilder.cs (2)
27public override IList<DelegatingHandler> AdditionalHandlers { get; } = new List<DelegatingHandler>();
Logging\Internal\TestLoggingHandler.cs (3)
20private static DelegatingHandler CreateInternalBclLoggingHandler(IHttpClientLogger logger, HttpMessageHandler? innerHandler) 27var delegatingHandler = Assert.IsAssignableFrom<DelegatingHandler>(handler);
Microsoft.Extensions.Http.Polly (1)
PolicyHttpMessageHandler.cs (1)
14/// A <see cref="DelegatingHandler"/> implementation that executes request processing surrounded by a <see cref="Policy"/>.
Microsoft.Extensions.Http.Polly.Tests (9)
DependencyInjection\PollyHttpClientBuilderExtensionsTest.cs (9)
43IList<DelegatingHandler> additionalHandlers = null; 78IList<DelegatingHandler> additionalHandlers = null; 116IList<DelegatingHandler> additionalHandlers = null; 157IList<DelegatingHandler> additionalHandlers = null; 196IList<DelegatingHandler> additionalHandlers = null; 254IList<DelegatingHandler> additionalHandlers = null; 299IList<DelegatingHandler> additionalHandlers = null; 334IList<DelegatingHandler> additionalHandlers = null; 413IList<DelegatingHandler> additionalHandlers = null;
netstandard (1)
netstandard.cs (1)
1096[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Http.DelegatingHandler))]
System.ServiceModel.Http (13)
System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (13)
23private static readonly Type s_delegatingHandlerType = typeof(DelegatingHandler); 27private Func<IEnumerable<DelegatingHandler>> _handlerFunc; 35/// HTTP message handler types must derive from <see cref="DelegatingHandler"/> and have a public constructor 82/// a function to create a set of <see cref="DelegatingHandler"/> instances. 84/// <param name="handlers">A function to generate an ordered list of <see cref="DelegatingHandler"/> instances 89public HttpMessageHandlerFactory(Func<IEnumerable<DelegatingHandler>> handlers) 134IEnumerable<DelegatingHandler> handlerInstances = null; 142foreach (DelegatingHandler handler in handlerInstances) 153DelegatingHandler[] instances = new DelegatingHandler[_handlerCtors.Length]; 156instances[cnt] = (DelegatingHandler)_handlerCtors[cnt].Invoke(Array.Empty<Type>()); 171foreach (DelegatingHandler handler in handlerInstances) 186private static string GetFuncDetails(Func<IEnumerable<DelegatingHandler>> func)