Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ijrou opened this issue Jan 22, 2022 · 1 comment

Comments

@ijrou
Copy link

ijrou commented Jan 22, 2022

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

@ijrou
Copy link
Author

ijrou commented Jan 22, 2022

Configura method in the Startup file adds:

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

Is this feasible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant