- Timestamp:
- Jan 27, 2023, 7:28:00 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/UrlHandlers/SseHandler.cs
r399 r402 39 39 base.SetBasePathAndParent (_parent, _relativePath); 40 40 41 queueThead = ThreadManager.StartThread ( "SSE-Processing_" + urlBasePath, QueueProcessThread, ThreadPriority.BelowNormal,41 queueThead = ThreadManager.StartThread ($"SSE-Processing_{urlBasePath}", QueueProcessThread, ThreadPriority.BelowNormal, 42 42 _useRealThread: true); 43 43 } … … 49 49 } 50 50 51 // ReSharper disable once MemberCanBePrivate.Global 51 52 public void AddEvent (string _eventName, AbsEvent _eventInstance) { 52 53 events.Add (_eventName, _eventInstance); 53 WebPermissions.Instance.AddKnownModule ( "webevent." + _eventName, _eventInstance.DefaultPermissionLevel ());54 WebPermissions.Instance.AddKnownModule ($"webevent.{_eventName}", _eventInstance.DefaultPermissionLevel ()); 54 55 } 55 56 … … 88 89 89 90 private bool IsAuthorizedForEvent (string _eventName, int _permissionLevel) { 90 return WebPermissions.Instance.ModuleAllowedWithLevel ( "webevent." + _eventName, _permissionLevel);91 return WebPermissions.Instance.ModuleAllowedWithLevel ($"webevent.{_eventName}", _permissionLevel); 91 92 } 92 93
Note:
See TracChangeset
for help on using the changeset viewer.