Prototype.Platform.Logging.EventHandlerRecord.FromBson C# (CSharp) Method

FromBson() public static method

public static FromBson ( BsonDocument doc ) : EventHandlerRecord
doc BsonDocument
return EventHandlerRecord
        public static EventHandlerRecord FromBson(BsonDocument doc)
        {
            var handler = new EventHandlerRecord
            {
                HandlerId = doc.GetString("HandlerId"),
                EventId = doc.GetString("EventId"),
                CommandId = doc.GetString("CommandId"),
                TypeName = doc.GetString("TypeName"),
                StartedDate = doc.GetDateTime("StartedDate"),
                EndedDate = doc.GetDateTime("EndedDate"),
                ErrorMessage = doc.GetString("ErrorMessage"),
                ErrorStackTrace = doc.GetString("ErrorStackTrace"),
            };

            return handler;
        }
EventHandlerRecord