public EventLog() { DateReceived = DateTime.UtcNow; AssemblyVersion = OSBIDE.Library.StringConstants.LibraryVersion; Subscriptions = new List <EventLogSubscription>(); Comments = new List <LogCommentEvent>(); Data = new EventLogData(); }
public EventLog(IOsbideEvent evt) : this() { DateReceived = DateTime.UtcNow; LogType = evt.EventName; Data = new EventLogData() { LogId = this.Id, BinaryData = EventFactory.ToZippedBinary(evt) }; }