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
770 B

6 years ago
using System;
namespace ZeroLevel.Patterns.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;
}
6 years ago
}
}

Powered by TurnKey Linux.