You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having dependency injection available would be great!
I do love the ASP.NET application builder pattern and it might fit in here too
For the example it would probably look something like this
varbuilder=DrawieApplication.CreateBuilder();// This would, alongside creating a builder with a service collection, add a DrawingEngine servicebuilder.Services.AddGlfwWindowing();builder.Services.AddVulkanRenderApi();builder.Services.AddSkiaBackend();builder.Services.AddWindow<MainWindow>();SkiaDrawingBackenddrawingBackend=newSkiaDrawingBackend();VulkanRenderApirenderApi=newVulkanRenderApi();GlfwWindowingPlatformwindowingPlatform=newGlfwWindowingPlatform(renderApi);varapp=builder.Build();// Do some more initialization related stuff or CMD argument logicapp.Run<MainWindow>();
Dependency injection can be still be useful even if you don't want to use the application builder pattern
Note that the classless Program.cs file pattern is only available for Desktop and Web targets (so no android, not sure about ios)
The text was updated successfully, but these errors were encountered:
Having dependency injection available would be great!
I do love the ASP.NET application builder pattern and it might fit in here too
For the example it would probably look something like this
Dependency injection can be still be useful even if you don't want to use the application builder pattern
Note that the classless Program.cs file pattern is only available for Desktop and Web targets (so no android, not sure about ios)
The text was updated successfully, but these errors were encountered: