Ejemplo n.º 1
0
        public static async Task <KeyValuePair <List <Facet>, long> > ParseFromStringAsync(string facetsArrayAsString, JsonOperationContext context)
        {
            using (var stream = new MemoryStream(Encoding.UTF8.GetBytes(facetsArrayAsString)))
            {
                var json = await context.ParseArrayToMemoryAsync(stream, "facets", BlittableJsonDocumentBuilder.UsageMode.None);

                return(ParseFromJson(json));
            }
        }