/// <inheritdoc/> public bool TryExtract(string jsonString, KeySelectorExpression keySelectorExpression, out ProjectionKey key) { key = null; var jsonObject = JObject.Parse(jsonString); var property = jsonObject[keySelectorExpression.Value]; if (property == null) { return(false); } key = AsProjectionKey(property); return(true); }
bool PropertyIsKey(ProjectEventKeySelectorType type, string eventContent, KeySelectorExpression keySelectorExpression, out ProjectionKey key) { key = null; return(type == ProjectEventKeySelectorType.Property && _keyPropertyExtractor.TryExtract(eventContent, keySelectorExpression, out key)); }