mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
36 lines
985 B
C#
36 lines
985 B
C#
using System;
|
|
|
|
namespace Octokit
|
|
{
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
|
public class ManualRouteAttribute : Attribute
|
|
{
|
|
public string Verb { get; private set; }
|
|
public string Path { get; private set; }
|
|
|
|
public ManualRouteAttribute(string verb, string path)
|
|
{
|
|
this.Verb = verb;
|
|
this.Path = path;
|
|
}
|
|
}
|
|
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
|
public class GeneratedRouteAttribute : Attribute
|
|
{
|
|
public string Verb { get; private set; }
|
|
public string Path { get; private set; }
|
|
|
|
public GeneratedRouteAttribute(string verb, string path)
|
|
{
|
|
this.Verb = verb;
|
|
this.Path = path;
|
|
}
|
|
}
|
|
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
|
|
public class DotNetSpecificRouteAttribute : Attribute
|
|
{
|
|
}
|
|
}
|