|
1234567891011121314151617181920212223242526272829303132333435 |
- using System.Reflection;
-
- namespace CLre_server.WebStatus
- {
- public class Attributes
- {
-
- }
-
- [System.AttributeUsage(System.AttributeTargets.Method)]
- public class WebEndpointAttribute : System.Attribute
- {
- private readonly string endpoint;
-
- public WebEndpointAttribute(string path)
- {
- endpoint = path;
- Assembly asm = Assembly.GetCallingAssembly();
- if (!WebServer._assembliesToCheck.Contains(asm))
- {
- WebServer._assembliesToCheck.Add(asm);
- }
-
- if (WebServer.MainInstance != null && WebServer.MainInstance.IsRunning)
- {
-
- }
- }
-
- internal string GetPath()
- {
- return endpoint;
- }
- }
- }
|