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

Support DI (OnClientConnected and OnClientDisconnected) #51

Open
billhong-just opened this issue Jun 4, 2022 · 0 comments
Open

Support DI (OnClientConnected and OnClientDisconnected) #51

billhong-just opened this issue Jun 4, 2022 · 0 comments
Assignees

Comments

@billhong-just
Copy link

billhong-just commented Jun 4, 2022

Problem to solve

Currently, We have to use clientConnectedArgs.Request.HttpContext.RequestServices.GetRequiredService<T>()
to get needed services from DI. It's not an intended way.

Proposal

A more ASP.NET Core style DI. Maybe something like jamesmh/coravel did.

It allow us to use DI in jobs we create.

References

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

No branches or pull requests

2 participants