Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created August 25, 2022 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/cf6b76c523b0b9dd0e4de604e2dedff3 to your computer and use it in GitHub Desktop.
Save lgolubyev/cf6b76c523b0b9dd0e4de604e2dedff3 to your computer and use it in GitHub Desktop.
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