Skip to content

gRPC clients cannot read messages when using services.AddSystem.WebAdapters() #461

@pockets3407

Description

@pockets3407

Summary

If it is possible, I would like to move middleware inside HttpContextStartupFilter into UseSystemWebAdapters(this IApplicationBuilder app).

Motivation and goals

Risks / unknowns

I'm not sure if the middleware order will be affected by this move.

I don't think developers will notice this change, app.UseSystemWebAdapters() should always be configured during startup. Perhaps, there is something I am missing, but documentation could also be updated to include this.

Examples

            app.UseWhen(
                context => context.Request.ContentType != "application/grpc",
                builder =>
                {
                    builder.UseSystemWebAdapters();
                }
            );

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIssues that have a PR open for them.Needs: Triage 🔍Label added to new issues which need Triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions