mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-17 13:27:43 +01:00
20 lines
588 B
C#
20 lines
588 B
C#
using System;
|
|
|
|
namespace Dalamud.IoC.Internal;
|
|
|
|
/// <summary>
|
|
/// Mark a class as being dependent on a service, without actually injecting it.
|
|
/// </summary>
|
|
/// <typeparam name="T">The service to be dependent upon.</typeparam>
|
|
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
|
|
internal class InherentDependencyAttribute<T> : InherentDependencyAttribute where T : IServiceType
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Helper class used for matching. Use the generic version.
|
|
/// </summary>
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
internal class InherentDependencyAttribute : Attribute
|
|
{
|
|
}
|