Beispiel #1
0
 internal InstrumentationEvent(string eventId, long startTime, long endTime, string name,
                               JObject attributes, string sessionId, int sequenceId,
                               string senderId, JObject senderContext,
                               SchemaType schemaType, EventType eventType, ErrorType errorType,
                               DeviceAppAttributes deviceAppAttributes, string connectionType,
                               string senderParentId, long sessionStartTime, JObject page,
                               JObject previousPage, JObject marks)
 {
     _eventId             = eventId;
     _startTime           = startTime;
     _endTime             = endTime;
     _name                = name;
     _attributes          = attributes;
     _sessionId           = sessionId;
     _sequenceId          = sequenceId;
     _senderContext       = senderContext;
     _schemaType          = schemaType;
     _eventType           = eventType;
     _errorType           = errorType;
     _deviceAppAttributes = deviceAppAttributes;
     _connectionType      = connectionType;
     _senderParentId      = senderParentId;
     _sessionStartTime    = sessionStartTime;
     _page                = page;
     _previousPage        = previousPage;
     _marks               = marks;
 }
Beispiel #2
0
 public InstrumentationEvent(JObject json)
 {
     if (json != null)
     {
         _eventId             = json.GetValue(EVENT_ID_KEY).ToString();
         _startTime           = (long)json.GetValue(START_TIME_KEY);
         _endTime             = (long)json.GetValue(END_TIME_KEY);
         _name                = json.GetValue(NAME_KEY).ToString();
         _attributes          = json.GetValue(ATTRIBUTES_KEY).ToObject <JObject>();
         _sessionId           = json.GetValue(SESSION_ID_KEY).ToString();
         _sequenceId          = (int)json.GetValue(SEQUENCE_ID_KEY);
         _senderId            = json.GetValue(SENDER_ID_KEY).ToString();
         _senderContext       = json.GetValue(SENDER_CONTEXT_KEY).ToObject <JObject>();
         _schemaType          = json.GetValue(SCHEMA_TYPE_KEY).ToObject <SchemaType>();
         _eventType           = json.GetValue(EVENT_TYPE_KEY).ToObject <EventType>();
         _errorType           = json.GetValue(ERROR_TYPE_KEY).ToObject <ErrorType>();
         _deviceAppAttributes = json.GetValue(DEVICE_APP_ATTRIBUTES_KEY).ToObject <DeviceAppAttributes>();
         _connectionType      = json.GetValue(CONNECTION_TYPE_KEY).ToString();
         _senderParentId      = json.GetValue(SENDER_PARENT_ID_KEY).ToString();
         _sessionStartTime    = (long)json.GetValue(SESSION_START_TIME_KEY);
         _page                = json.GetValue(PAGE_KEY).ToObject <JObject>();
         _previousPage        = json.GetValue(PREVIOUS_PAGE_KEY).ToObject <JObject>();
         _marks               = json.GetValue(MARKS_KEY).ToObject <JObject>();
     }
 }