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

Dependency Injection with .net core #69

Open
MattHartz opened this issue Nov 13, 2017 · 0 comments
Open

Dependency Injection with .net core #69

MattHartz opened this issue Nov 13, 2017 · 0 comments

Comments

@MattHartz
Copy link

Hi,

I'm using service fabric with a .net core service that registers a few dependent web socket classes in that Startup class. I would like to give the service class the ability to access these classes via dependency injection but I do not see a way to do that with the way the service is initialized.

For example, in the main function is where the service registration is called, but it isn't until CreateServiceInstanceListeners until Startup.cs is called which initially registers the dependencies.

Is there anyway to achieve this?

Thanks!

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