Initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
|
||||
namespace BracerLib.DI
|
||||
{
|
||||
public struct Dependency
|
||||
{
|
||||
public Type Type { get; }
|
||||
public FactoryFunc Factory { get; }
|
||||
public DependencyLifetime Lifetime { get; }
|
||||
|
||||
public Dependency(Type type, FactoryFunc provider, DependencyLifetime lifetime)
|
||||
{
|
||||
Type = type;
|
||||
Factory = provider;
|
||||
Lifetime = lifetime;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user