Ignore:
Timestamp:
Aug 6, 2022, 11:32:32 PM (2 years ago)
Author:
alloc
Message:

Big refactoring in Web to pass around a Context instead of a bunch of individual arguments all the time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/MapRendering/Web/SSE/EventLog.cs

    r382 r387  
    1010
    1111                private void LogCallback (string _formattedMsg, string _plainMsg, string _trace, LogType _type, DateTime _timestamp, long _uptime) {
    12                         string date = $"{_timestamp.Year:0000}-{_timestamp.Month:00}-{_timestamp.Day:00}";
    13                         string time = $"{_timestamp.Hour:00}:{_timestamp.Minute:00}:{_timestamp.Second:00}";
    1412                        string isotime = _timestamp.ToString ("o");
    1513                        string uptime = _uptime.ToString ();
     
    2018                        data.Add ("type", new JSONString (_type.ToStringCached ()));
    2119                        data.Add ("trace", new JSONString (_trace));
    22                         data.Add ("date", new JSONString (date));
    23                         data.Add ("time", new JSONString (time));
    2420                        data.Add ("isotime", new JSONString (isotime));
    2521                        data.Add ("uptime", new JSONString (uptime));
Note: See TracChangeset for help on using the changeset viewer.