Created
November 16, 2015 01:49
-
-
Save adamped/fb9a69c3d167f01dec87 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
var uniqueKey = System.Guid.NewGuid().ToString(); | |
var model = SimpleIoc.Default.GetInstance<LoginModel>(uniqueKey); | |
// Must remmeber to cleanup, otherwise all new instances are cached | |
SimpleIoc.Default.Unregister(uniqueKey); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment