Files
octokit.net/Octokit/Helpers/ManualRouteAttribute.cs
2020-03-04 21:10:38 -04:00

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
{
}
}