Skip to content

Commit 9f9d3e2

Browse files
Create InRouteAttribute
1 parent 935d495 commit 9f9d3e2

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Simple.API/ClientBuilderAttributes/Attributes.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
using System;
44

5+
/* Interface Attributes */
56
[AttributeUsage(AttributeTargets.Interface)]
67
public class TimeoutAttribute : Attribute
78
{
@@ -13,7 +14,7 @@ public TimeoutAttribute(int timeoutInSeconds)
1314
}
1415
}
1516

16-
17+
/* Method Attributes */
1718
public class MethodAttribute : Attribute
1819
{
1920
public string Route { get; protected set; }
@@ -39,4 +40,9 @@ public class PutAttribute : MethodAttribute
3940
public class DeleteAttribute : MethodAttribute
4041
{
4142
public DeleteAttribute(string route) => Route = route;
42-
}
43+
}
44+
45+
/* Parameter Attributes */
46+
[AttributeUsage(AttributeTargets.Parameter)]
47+
public class InRouteAttribute : Attribute
48+
{ }

0 commit comments

Comments
 (0)