Controlling Scope and Lifetime Flashcards
1
Q
A
2
Q
What is the purpose of the ExternallyOwned method
A
To allow you to control the lifetime of a particular instance.
3
Q
What is an example of using ExternallyOwned?
A
builder.RegisterInstance(MySingleton.Instance).ExternallyOwned();