Skip to content

Commit 1376cc2

Browse files
committed
added attributes
1 parent b3179d0 commit 1376cc2

File tree

4 files changed

+49
-0
lines changed

4 files changed

+49
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
namespace NetCore.AutoRegisterDi.Attributes
2+
{
3+
using System;
4+
5+
/// <summary>
6+
/// Attribute for marking classes which no need to register in container
7+
/// </summary>
8+
[AttributeUsage(AttributeTargets.Class)]
9+
public class DoNotAutoRegisterAttribute : Attribute
10+
{
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
namespace NetCore.AutoRegisterDi.Attributes
2+
{
3+
using System;
4+
5+
/// <summary>
6+
/// Attribute for marking classes which need to register with Scope life time
7+
/// </summary>
8+
[AttributeUsage(AttributeTargets.Class)]
9+
public class RegisterAsScopedAttribute : Attribute
10+
{
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
namespace NetCore.AutoRegisterDi.Attributes
2+
{
3+
using System;
4+
5+
/// <summary>
6+
/// Attribute for marking classes which need to register with Singleton life time
7+
/// </summary>
8+
[AttributeUsage(AttributeTargets.Class)]
9+
public class RegisterAsSingletonAttribute : Attribute
10+
{
11+
}
12+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
namespace NetCore.AutoRegisterDi.Attributes
2+
{
3+
using System;
4+
using System.Runtime.InteropServices;
5+
6+
/// <summary>
7+
/// Attribute for marking classes which need to register with Transient life time
8+
/// </summary>
9+
[AttributeUsage(AttributeTargets.Class)]
10+
public class RegisterAsTransientAttribute : Attribute
11+
{
12+
}
13+
}

0 commit comments

Comments
 (0)