Ignore:
Timestamp:
Aug 11, 2021, 6:22:03 PM (3 years ago)
Author:
alloc
Message:

Web:

  • Added SSE (ServerSentEvents) subsystem
  • Added log endpoint to SSE. Less heavy weight and more responsive way of watching the server log
  • Bunch of refactoring
File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/Web/Handlers/ItemIconHandler.cs

    r354 r367  
    1111                private readonly bool logMissingFiles;
    1212
    13                 private readonly string staticPart;
    1413                private bool loaded;
    1514
     
    1817                }
    1918
    20                 public ItemIconHandler (string _staticPart, bool _logMissingFiles, string _moduleName = null) : base (_moduleName) {
    21                         staticPart = _staticPart;
     19                public ItemIconHandler (bool _logMissingFiles, string _moduleName = null) : base (_moduleName) {
    2220                        logMissingFiles = _logMissingFiles;
    2321                        Instance = this;
     
    3432                        }
    3533
    36                         string requestFileName = _req.Url.AbsolutePath.Remove (0, staticPart.Length);
     34                        string requestFileName = _req.Url.AbsolutePath.Remove (0, urlBasePath.Length);
    3735                        requestFileName = requestFileName.Remove (requestFileName.LastIndexOf ('.'));
    3836
Note: See TracChangeset for help on using the changeset viewer.