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/Internal/ConstructorParameter.cs

51 lines
1.1 KiB

6 years ago
using System;
namespace ZeroLevel.Patterns.DependencyInjection
{
/// <summary>
/// Constructor argument type
6 years ago
/// </summary>
internal enum ConstructorParameterKind
{
/// <summary>
/// Constant
6 years ago
/// </summary>
None,
/// <summary>
/// DI parameter
6 years ago
/// </summary>
Parameter,
/// <summary>
/// Dependency
6 years ago
/// </summary>
Dependency
6 years ago
}
/// <summary>
/// Constructor argument metadata
6 years ago
/// </summary>
internal sealed class ConstructorParameter
{
/// <summary>
/// Argument DI-type
6 years ago
/// </summary>
public ConstructorParameterKind ParameterKind;
/// <summary>
/// Argument contract type
6 years ago
/// </summary>
public Type ParameterResolveType;
/// <summary>
/// Dependency name
6 years ago
/// </summary>
public string ParameterResolveName;
/// <summary>
/// Allow null
6 years ago
/// </summary>
public bool IsNullable;
/// <summary>
/// Argument CLR type
6 years ago
/// </summary>
public Type Type;
}
}

Powered by TurnKey Linux.