Changeset 410 for binary-improvements2/WebServer
- Timestamp:
- Feb 22, 2023, 5:54:14 PM (21 months ago)
- Location:
- binary-improvements2/WebServer/src/WebAPI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/WebAPI/AbsRestApi.cs
r404 r410 8 8 public abstract class AbsRestApi : AbsWebAPI { 9 9 private static readonly UnityEngine.Profiling.CustomSampler jsonDeserializeSampler = UnityEngine.Profiling.CustomSampler.Create ("JSON_Deserialize"); 10 11 protected AbsRestApi (string _name = null) : this(null, _name) { 12 } 13 14 protected AbsRestApi (Web _parentWeb, string _name = null) : base(_parentWeb, _name) { 15 } 10 16 11 17 public sealed override void HandleRequest (RequestContext _context) { -
binary-improvements2/WebServer/src/WebAPI/AbsWebAPI.cs
r391 r410 2 2 public abstract class AbsWebAPI { 3 3 public readonly string Name; 4 protected readonly Web ParentWeb; 4 5 5 protected AbsWebAPI (string _name = null) { 6 protected AbsWebAPI (string _name = null) : this(null, _name) { 7 } 8 9 protected AbsWebAPI (Web _parentWeb, string _name = null) { 6 10 Name = _name ?? GetType ().Name; 11 ParentWeb = _parentWeb; 7 12 } 8 13 9 14 public abstract void HandleRequest (RequestContext _context); 10 15 11 public virtual int DefaultPermissionLevel () { 12 return 0; 13 } 16 public virtual int DefaultPermissionLevel () => 0; 14 17 } 15 18 }
Note:
See TracChangeset
for help on using the changeset viewer.