void GetEvents(MessagePrefixesPair msgPfx, Queue <Event> buffer) { var msg = msgPfx.Message; Match m; EnsureWebRtcRootReported(msg, buffer); }
void GetEvents(MessagePrefixesPair msgPfx, Queue <Event> buffer) { var msg = msgPfx.Message; EnsureWebRtcRootReported(msg, buffer); if (msg.RootObjectType == Message.RootObjectTypes.Connection) { var objectIdMatch = objectIdRegex.Match(msg.ObjectId); if (objectIdMatch.Success) { ObjectType objectType; if (objectTypes.TryGetValue(objectIdMatch.Groups["type"].Value.ToLowerInvariant(), out objectType)) { HandlePeerConnectionObjectMessage(objectType, msg, buffer); } } else if (msg.ObjectId == "log") { HandlePeerConnectionLogMessage(msg, buffer); } } }