You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace ZeroLevel.DependencyInjection
|
|
|
|
|
{
|
|
|
|
|
public sealed class ResolveAttribute : Attribute
|
|
|
|
|
{
|
|
|
|
|
public string ResolveName { get; }
|
|
|
|
|
public Type ContractType { get; }
|
|
|
|
|
|
|
|
|
|
public ResolveAttribute()
|
|
|
|
|
{
|
|
|
|
|
ResolveName = string.Empty; ContractType = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ResolveAttribute(string resolveName)
|
|
|
|
|
{
|
|
|
|
|
ResolveName = resolveName; ContractType = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ResolveAttribute(Type contractType)
|
|
|
|
|
{
|
|
|
|
|
ResolveName = string.Empty; ContractType = contractType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public ResolveAttribute(string resolveName, Type contractType)
|
|
|
|
|
{
|
|
|
|
|
ResolveName = resolveName; ContractType = contractType;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|