mirror of https://github.com/ogoun/Zero.git
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.
16 lines
656 B
16 lines
656 B
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; }
|
|
}
|
|
}
|