Skip to content

Commit daa6255

Browse files
authored
Add IHttpHandlerFactory (#555)
A number of other HTTP handler APIs were ported earlier and this one was missed. As with the others, this will allow projects to compile, but no default implementation is provided at the moment.
1 parent 7a7cb9c commit daa6255

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

src/Microsoft.AspNetCore.SystemWebAdapters/Generated/Ref.Standard.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,11 @@ public partial interface IHttpHandler
807807
bool IsReusable { get; }
808808
void ProcessRequest(System.Web.HttpContext context);
809809
}
810+
public partial interface IHttpHandlerFactory
811+
{
812+
System.Web.IHttpHandler GetHandler(System.Web.HttpContext context, string requestType, string url, string pathTranslated);
813+
void ReleaseHandler(System.Web.IHttpHandler handler);
814+
}
810815
public partial interface IHttpModule
811816
{
812817
void Dispose();

src/Microsoft.AspNetCore.SystemWebAdapters/Generated/TypeForwards.Framework.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Web.HttpUnhandledException))]
6262
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Web.IHttpAsyncHandler))]
6363
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Web.IHttpHandler))]
64+
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Web.IHttpHandlerFactory))]
6465
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Web.IHttpModule))]
6566
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Web.ISubscriptionToken))]
6667
[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Web.ReadEntityBodyMode))]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
namespace System.Web;
5+
6+
public interface IHttpHandlerFactory
7+
{
8+
[Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1054:URI-like parameters should not be strings", Justification = Constants.ApiFromAspNet)]
9+
IHttpHandler GetHandler(HttpContext context, String requestType, String url, String pathTranslated);
10+
11+
void ReleaseHandler(IHttpHandler handler);
12+
}

0 commit comments

Comments
 (0)