Ignore:
Timestamp:
Jan 27, 2023, 7:28:00 PM (22 months ago)
Author:
alloc
Message:
  • Major refactoring
  • Using Utf8Json for (de)serialization
  • Moving APIs to REST
  • Removing dependencies from WebServer and MapRenderer to ServerFixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/WebServer/src/UrlHandlers/SseHandler.cs

    r399 r402  
    3939                        base.SetBasePathAndParent (_parent, _relativePath);
    4040
    41                         queueThead = ThreadManager.StartThread ("SSE-Processing_" + urlBasePath, QueueProcessThread, ThreadPriority.BelowNormal,
     41                        queueThead = ThreadManager.StartThread ($"SSE-Processing_{urlBasePath}", QueueProcessThread, ThreadPriority.BelowNormal,
    4242                                _useRealThread: true);
    4343                }
     
    4949                }
    5050
     51                // ReSharper disable once MemberCanBePrivate.Global
    5152                public void AddEvent (string _eventName, AbsEvent _eventInstance) {
    5253                        events.Add (_eventName, _eventInstance);
    53                         WebPermissions.Instance.AddKnownModule ("webevent." + _eventName, _eventInstance.DefaultPermissionLevel ());
     54                        WebPermissions.Instance.AddKnownModule ($"webevent.{_eventName}", _eventInstance.DefaultPermissionLevel ());
    5455                }
    5556
     
    8889
    8990                private bool IsAuthorizedForEvent (string _eventName, int _permissionLevel) {
    90                         return WebPermissions.Instance.ModuleAllowedWithLevel ("webevent." + _eventName, _permissionLevel);
     91                        return WebPermissions.Instance.ModuleAllowedWithLevel ($"webevent.{_eventName}", _permissionLevel);
    9192                }
    9293
Note: See TracChangeset for help on using the changeset viewer.