In the section where you are adding services, you should create the container and inject the container access.
if you created a container access wrapper, it could also create in first access. Just inject the connection settings.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi all;
In my Blazor server app, when it starts up, I want to create any Azure Storage BLOB containers that I expect that don't exist yet. Where is the appropriate place to put code like this?
Is it ok to put it at the end of the Program.cs main() method? And if so, how do I get an instance of the service I need to accomplish this there? Do I call:
app.Services.GetService<IMyService>();
thanks - dave
In the section where you are adding services, you should create the container and inject the container access.
if you created a container access wrapper, it could also create in first access. Just inject the connection settings.