-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathAnnotations.cs
58 lines (52 loc) · 1.55 KB
/
Annotations.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using System;
namespace PowerInject
{
[AttributeUsage(AttributeTargets.Property| AttributeTargets.Field | AttributeTargets.Constructor, AllowMultiple = true)]
public class Inject : System.Attribute
{
}
[AttributeUsage(AttributeTargets.Field, AllowMultiple = false)]
public class NewInstance : System.Attribute
{
}
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class Power : System.Attribute
{
}
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public class Module : System.Attribute
{
public String Named { get; set; }
}
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class Produce : System.Attribute
{
public String Named { get;set; }
}
[AttributeUsage(AttributeTargets.Parameter|AttributeTargets.Field, AllowMultiple = false)]
public class Named : System.Attribute
{
public String name;
public Named(String name) {
this.name = name;
}
}
[AttributeUsage(AttributeTargets.Parameter | AttributeTargets.Field, AllowMultiple = false)]
public class Typed : System.Attribute
{
public Type type;
public Typed(Type type)
{
this.type = type;
}
}
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class Insert : System.Attribute
{
public Type Typed { get; set; }
public String Named { get; set; }
}
public class OnInjected : System.Attribute
{
}
}