コード例 #1
0
        public async Task UploadSelfie([FromBody] SelfieTime photo)
        {
            var blobUri = await _cloudStorageService.UploadPhotoFromB64(photo.Photo);

            var msg = JsonConvert.SerializeObject(new
            {
                Type = "Selfie",
                Msg  = JsonConvert.SerializeObject(new
                {
                    SelfieUri  = blobUri,
                    Time       = photo.Time,
                    IdActivity = photo.IdActivity
                })
            });
            await _eventHubService.SendMsg(msg);
        }