Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created August 25, 2022 16:03
Embed
What would you like to do?
Services.AddScoped<SomeCustomType>();
public class MyHub : Hub
{
// SomeCustomType comes from DI by default now
public Task Method(string text, SomeCustomType type) => Task.CompletedTask;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment