This is a little rough, but I thought I'd send it in as something of a proposal--currently there's no way to use .WithAttachment from a PCL in a way that'll work on Windows platforms, which can be kind of limiting.
This PR would allow access to files that the application has permission to access without any special privileges (i.e. anything contained in ApplicationData). So it won't play nicely with StorageFiles obtained via some kind of file picker, but it'll be fine for things saved in the app's local storage.
I'm also reasonably sure that I've handled the async call in a way that should prevent any deadlocking, but I'd love more eyes on that part.
This is a little rough, but I thought I'd send it in as something of a proposal--currently there's no way to use .WithAttachment from a PCL in a way that'll work on Windows platforms, which can be kind of limiting.
This PR would allow access to files that the application has permission to access without any special privileges (i.e. anything contained in ApplicationData). So it won't play nicely with StorageFiles obtained via some kind of file picker, but it'll be fine for things saved in the app's local storage.
I'm also reasonably sure that I've handled the async call in a way that should prevent any deadlocking, but I'd love more eyes on that part.