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