Controlling Scope and Lifetime Flashcards

1
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the purpose of the ExternallyOwned method

A

To allow you to control the lifetime of a particular instance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is an example of using ExternallyOwned?

A

builder.RegisterInstance(MySingleton.Instance).ExternallyOwned();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly