Skip to content

[AOT] Replace usage of IConfiguration.Bind #1055

@kshyju

Description

@kshyju

IConfiguration.Bind is not trimmer friendly.

See dotnet/runtime#59230

We use this method to bind to GrpcWorkerStartupOptions type, which is to represent the data from the command line arguments sent from host

services.AddOptions<GrpcWorkerStartupOptions>()
.Configure<IConfiguration>((arguments, config) =>
{
config.Bind(arguments);
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions