Skip to content

Instantly share code, notes, and snippets.

@NeelBhatt
Created June 10, 2020 15:55
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 NeelBhatt/b906fc894888a5ed199a7a0ea543ded4 to your computer and use it in GitHub Desktop.
Save NeelBhatt/b906fc894888a5ed199a7a0ea543ded4 to your computer and use it in GitHub Desktop.
private readonly ISingletonOperation _singletonOperation;
private readonly IScopedOperation _scopedOperation;
private readonly ITransientOperation _transientOperation;
private readonly IMyService _myService;
private readonly ILogger<HomeController> _logger;
public HomeController
(
ILogger<HomeController> logger,
ISingletonOperation singletonOperation,
ITransientOperation transientOperation,
IScopedOperation scopedOperation,
IMyService myService
)
{
_singletonOperation = singletonOperation;
_transientOperation = transientOperation;
_scopedOperation = scopedOperation;
_myService = myService;
_logger = logger;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment