Exemplo n.º 1
0
        public async static Task UpdatePersonDefaultImageAddress(string personId, Face face)
        {
            JObject jo = new JObject();

            jo.Add("id", personId);
            jo.Add("defaultImageAddress", AzureBlobService.GetImageAddress(face.Id + ".jpg"));
            await personTable.UpdateAsync(jo);
        }
Exemplo n.º 2
0
        public async static Task <Face> UpdateFaceImageAddress(Face face)
        {
            Face updatedFace = await GetFaceFromImageTokenAndPersonId(face.ImageToken, face.PersonId);

            await AzureBlobService.UploadImageFromImageToken(face.ImageToken, updatedFace.Id + ".jpg");

            JObject jo = new JObject();

            jo.Add("id", updatedFace.Id);
            jo.Add("imageAddress", AzureBlobService.GetImageAddress(updatedFace.Id + ".jpg"));
            //updatedFace.ImageAddress = AzureBlobService.GetImageAddress(updatedFace.Id + ".jpg");
            await faceTable.UpdateAsync(jo);

            return(updatedFace);
        }