Last active
March 20, 2016 23:45
-
-
Save AlphaGit/303e5763c6d2f6f03dce to your computer and use it in GitHub Desktop.
Coupled Producer/Consumer classes
This file contains hidden or 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 Consumer { | |
public void DoConsumption() { | |
var producer = new Producer(); | |
var value = producer.DoProduction(); | |
// do something with value | |
} | |
} |
This file contains hidden or 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 Producer { | |
public object DoProduction() { | |
return someObject; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment