backblaze icon indicating copy to clipboard operation
backblaze copied to clipboard

In asp.net core's dependency injection, do I need to connect first? The documentation doesn't seem to mention it.

Open 16cm opened this issue 4 years ago • 1 comments

In asp.net core's dependency injection, do I need to connect first? The documentation doesn't seem to mention it!

16cm avatar Jan 22 '22 19:01 16cm

Configura method in the Startup file adds:

var applicationServices = app.ApplicationServices;
applicationServices.GetService<IStorageClient>()?.ConnectAsync();

Is this feasible?

16cm avatar Jan 22 '22 22:01 16cm