[Add] VContainer
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace VContainer.Internal
|
||||
{
|
||||
sealed class ExistingInstanceProvider : IInstanceProvider
|
||||
{
|
||||
readonly object implementationInstance;
|
||||
|
||||
public ExistingInstanceProvider(object implementationInstance)
|
||||
{
|
||||
this.implementationInstance = implementationInstance;
|
||||
}
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public object SpawnInstance(IObjectResolver resolver) => implementationInstance;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user