You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.5 KiB
83 lines
2.5 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Apewer.AspNetBridge
|
|
{
|
|
|
|
/// <summary></summary>
|
|
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
|
|
public sealed class RoutePrefixAttribute : Attribute
|
|
{
|
|
|
|
string _path;
|
|
|
|
/// <summary></summary>
|
|
public string Path { get { return _path; } }
|
|
|
|
/// <summary></summary>
|
|
/// <param name="path"></param>
|
|
public RoutePrefixAttribute(string path) { _path = path; }
|
|
|
|
}
|
|
|
|
/// <summary></summary>
|
|
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
|
|
public sealed class RouteAttribute : Attribute
|
|
{
|
|
|
|
string _path;
|
|
|
|
/// <summary></summary>
|
|
public string Path { get { return _path; } }
|
|
|
|
/// <summary></summary>
|
|
public RouteAttribute(string path) { _path = path; }
|
|
|
|
}
|
|
|
|
/// <summary></summary>
|
|
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
|
|
public class FromBodyAttribute : Attribute { }
|
|
|
|
/// <summary></summary>
|
|
[AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
|
|
public class FromUriAttribute : Attribute { }
|
|
|
|
/// <summary></summary>
|
|
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
|
|
public sealed class HttpConnectAttribute : Attribute { }
|
|
|
|
/// <summary></summary>
|
|
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
|
|
public sealed class HttpDeleteAttribute : Attribute { }
|
|
|
|
/// <summary></summary>
|
|
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
|
|
public sealed class HttpGetAttribute : Attribute { }
|
|
|
|
/// <summary></summary>
|
|
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
|
|
public sealed class HttpHeadAttribute : Attribute { }
|
|
|
|
/// <summary></summary>
|
|
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
|
|
public sealed class HttpOptionsAttribute : Attribute { }
|
|
|
|
/// <summary></summary>
|
|
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
|
|
public sealed class HttpPatchAttribute : Attribute { }
|
|
|
|
/// <summary></summary>
|
|
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
|
|
public sealed class HttpPostAttribute : Attribute { }
|
|
|
|
/// <summary></summary>
|
|
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
|
|
public sealed class HttpPutAttribute : Attribute { }
|
|
|
|
/// <summary></summary>
|
|
[AttributeUsage(AttributeTargets.Method, Inherited = false)]
|
|
public sealed class HttpTraceAttribute : Attribute { }
|
|
|
|
}
|
|
|