Last active
March 28, 2020 17:59
-
-
Save samueleresca/2f068c5ba284291785915ee641ce4d5e to your computer and use it in GitHub Desktop.
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 ThreadUnsafeClass | |
{ | |
public OtherClass MyObject; | |
public void ThreadUnsafeClass() | |
{ | |
MyObject = new OtherClass(); | |
MyObject.InitializeDependencies(); | |
} | |
public void Handler(string value) | |
{ | |
MyObject.Execute(value); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment