Skip to content
Documentation

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>

TCommon

The type wanting to share an instance of TShared.

TShared

The type of object all TCommon want to share.

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; }

TShared

© 2026 Volue.Version v0.6.38017 November 2026