Skip to content

Instantly share code, notes, and snippets.

@NeelBhatt
Created Jun 10, 2020
Embed
What would you like to do?
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