/// <summary> /// Enqueues an BaseEvent to be uploaded at the end of an `EventsApi#Configuration#UploadInterval` interval /// </summary> /// <param name="baseEvent">The BaseEvent to be enqueued</param> public void LogEvent(BaseEvent baseEvent) { if (baseEvent.TimestampUnixtimeMs == 0) { baseEvent.TimestampUnixtimeMs = ((DateTimeOffset)DateTime.UtcNow).ToUnixTimeMilliseconds(); } _uploadQueue.AddEvent(baseEvent); }