SteveSandersonMS / WebWindow

.NET Core library to open native OS windows containing web UI on Windows, Mac, and Linux. Experimental.
Apache License 2.0
1.99k stars 215 forks source link

Can't use "public Startup(IConfiguration configuration)" with "ComponentsDesktop.Run<Startup>" #79

Closed Jinjinov closed 4 years ago

Jinjinov commented 4 years ago

Right now there is no way to pass custom parameters to the Startup class

Add the ability to use "public Startup(IConfiguration configuration)" with "ComponentsDesktop.Run"

Jinjinov commented 4 years ago

It is possible to use:

public void Configure(DesktopApplicationBuilder app)
{
    IConfiguration configuration = app.Services.GetService<IConfiguration>();
}