| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System;
- namespace ETModel
- {
- public class HttpHandlerAttribute : BaseAttribute
- {
- public AppType AppType { get; }
- public string Path { get; }
- public HttpHandlerAttribute(AppType appType, string path)
- {
- this.AppType = appType;
- this.Path = path;
- }
- }
- [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
- public class GetAttribute : Attribute
- {
- public string Path { get; }
- public GetAttribute()
- {
- }
- public GetAttribute(string path)
- {
- this.Path = path;
- }
- }
- [AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
- public class PostAttribute : Attribute
- {
- public string Path { get; }
- public PostAttribute()
- {
- }
- public PostAttribute(string path)
- {
- this.Path = path;
- }
- }
- }
|