Skip to content

Instantly share code, notes, and snippets.

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