private static async Task SaveTransmissionToFileAsync(Transmission transmission, string fileFullName)
{
try
{
using (Stream stream = File.OpenWrite(fileFullName))
{
await StorageTransmission.SaveAsync(transmission, stream).ConfigureAwait(false);
}
}
catch (UnauthorizedAccessException)
{
string message = string.Format("Failed to save transmission to file. UnauthorizedAccessException. File full path: {0}", fileFullName);
CoreEventSource.Log.LogVerbose(message);
throw;
}
}