public async Task SaveAudioToAzure()
		{
			if (AudioBytes != null && AudioBytes.Length > 0) {
				// Use the storage service to save to Azure
				var azureAudioId = await _storageService.SaveAudioAsync (AudioBytes);

				// Broadcast a message with the id that was saved
				var msgArgs = new StorageCompleteMessage() { StorageUrl = azureAudioId.AbsoluteUri};
				MessagingCenter.Send<AudioVideoViewModel, StorageCompleteMessage> (this, AzureConstants.AudioStorageComplete, msgArgs);
			}
		}
Пример #2
0
        public async Task SaveAudioToAzure()
        {
            if (AudioBytes != null && AudioBytes.Length > 0)
            {
                // Use the storage service to save to Azure
                var azureAudioId = await _storageService.SaveAudioAsync(AudioBytes);

                // Broadcast a message with the id that was saved
                var msgArgs = new StorageCompleteMessage()
                {
                    StorageUrl = azureAudioId.AbsoluteUri
                };
                MessagingCenter.Send <AudioVideoViewModel, StorageCompleteMessage> (this, AzureConstants.AudioStorageComplete, msgArgs);
            }
        }