This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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