Last active
March 16, 2020 20:16
-
-
Save ankitvijay/2ff079e425e14fa7a482fa54d331ecdd to your computer and use it in GitHub Desktop.
Captive Dependency 2
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 class SingletonDependency | |
{ | |
private readonly ScopedDependency scopedDepdendency; | |
// Should this blow up?? | |
public SingletonDependency(ScopedDependency transitiveDependecy) | |
{ | |
this.scopedDepdendency = transitiveDependecy; | |
} | |
public int GetNextCounter() | |
{ | |
return scopedDepdendency.GetNextCounter(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment