ISharedInstance<TCommon,TShared> Interface
Represents a container for an instance of type TShared that all activations of TCommon want to share among themselves. The implementation of TCommon should add a dependency to ISharedInstance<TCommon,TShared> to access the shared instance through Instance.
public interface ISharedInstance<TCommon,TShared>Type parameters
Section titled “Type parameters”TCommon
The type wanting to share an instance of TShared.
TShared
The type of object all TCommon want to share.
Properties
Section titled “Properties”ISharedInstance<TCommon,TShared>.Instance Property
Section titled “ISharedInstance<TCommon,TShared>.Instance Property”Returns the instance of TShared shared across activations of TCommon.
TShared Instance { get; }Property Value
Section titled “Property Value”Was this page helpful?Thanks for your feedback!