19 lines
415 B
C#
19 lines
415 B
C#
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;
|
|
}
|
|
}
|
|
}
|