I have a Blazor Server app. How can I pass parameters in on 'start up'.
The program contains the following in Program.cs. Can I pass in a Query String? or what's another method can I use.
The url looks like this https://MyApp.azurewebsites.net
thx in advance
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseSetting(WebHostDefaults.DetailedErrorsKey, "true");
webBuilder.UseStartup<Startup>();
});
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…