Skip to content

A helper for setting up web applications; currently a template rather than a nuget

License

Notifications You must be signed in to change notification settings

garethbirduk/GradientSoftware.BuilderExtensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GradientSoftware.WebApplicationBuilderExtensions

A helper for setting up web applications; currently a template rather than a nuget

WebApplication usage

await WebApplication
	.CreateBuilder(args)
	.BuildConfiguration()
	.ConfigureEnvironment()
	.ConfigureServices()
	.ConfigureCustomServices() // this will be for adding specific singletons etc
	.ConfigureLogging()
	.Build()
	.ConfigureApp()
	.LogSections("Logging")
	.RunAsync();

IHostBuilder usage

using IServiceScope serviceScope = CreateDefaultBuilder(args)
	.BuildConfiguration()
	.AddService<CloneHeroHelper>()
	.Build()
	.Services
	.CreateScope();
await serviceScope.ServiceProvider
	.GetRequiredService<CloneHeroHelper>()
	.RunAsync();

About

A helper for setting up web applications; currently a template rather than a nuget

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages