Unofficial CardLife revival project, pronounced like "celery"
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.
|
- 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;
- }
- }
- }
|