mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-19 14:27:45 +01:00
feat: add InherentDependencyAttribute, mark PM inherently dependent on IM
This commit is contained in:
parent
4a228f4e3b
commit
f40ea4310c
5 changed files with 34 additions and 4 deletions
20
Dalamud/IoC/Internal/InherentDependencyAttribute.cs
Normal file
20
Dalamud/IoC/Internal/InherentDependencyAttribute.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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)]
|
||||
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
|
||||
{
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue