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.
Zero/ZeroLevel/Services/DependencyInjection/ResolveAttribute.cs

30 lines
763 B

6 years ago
using System;
5 years ago
namespace ZeroLevel.DependencyInjection
6 years ago
{
public sealed class ResolveAttribute : Attribute
{
public string ResolveName { get; }
public Type ContractType { get; }
public ResolveAttribute()
{
7 months ago
ResolveName = string.Empty; ContractType = null!;
}
public ResolveAttribute(string resolveName)
{
7 months ago
ResolveName = resolveName; ContractType = null!;
}
public ResolveAttribute(Type contractType)
{
ResolveName = string.Empty; ContractType = contractType;
}
public ResolveAttribute(string resolveName, Type contractType)
{
ResolveName = resolveName; ContractType = contractType;
}
6 years ago
}
}

Powered by TurnKey Linux.