-
Notifications
You must be signed in to change notification settings - Fork 0
/
DependencyInjection.cs
37 lines (36 loc) · 1.05 KB
/
DependencyInjection.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
namespace Excubo.Analyzers.DependencyInjection
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class ExposesAttribute : Attribute
{
public ExposesAttribute(Type type)
{
}
}
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class AsAttribute : Attribute
{
public AsAttribute(Type @interface)
{
}
}
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class IgnoreDependencyAttribute : Attribute
{
public IgnoreDependencyAttribute(params Type[] interfaces)
{
}
}
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class DependencyInjectionPointAttribute : Attribute
{
}
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class InjectsAttribute : Attribute
{
public InjectsAttribute(params Type[] types)
{
}
}
}