summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.WinRT
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-05-04 07:08:54 -0600
committerRui Marinho <me@ruimarinho.net>2016-05-04 14:08:54 +0100
commit5b9094241b1d3da5419ed21be30bdcc07c469dbe (patch)
treecd22a4b646a7002c61e4b7fe0714c0f64e483d38 /Xamarin.Forms.Platform.WinRT
parenta2148444bafd728090c39c1f40700b43baded1e4 (diff)
downloadxamarin-forms-5b9094241b1d3da5419ed21be30bdcc07c469dbe.tar.gz
xamarin-forms-5b9094241b1d3da5419ed21be30bdcc07c469dbe.tar.bz2
xamarin-forms-5b9094241b1d3da5419ed21be30bdcc07c469dbe.zip
Prep StreamImageSource for removal of InternalsVisibleTo
Diffstat (limited to 'Xamarin.Forms.Platform.WinRT')
-rw-r--r--Xamarin.Forms.Platform.WinRT/StreamImagesourceHandler.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.WinRT/StreamImagesourceHandler.cs b/Xamarin.Forms.Platform.WinRT/StreamImagesourceHandler.cs
index faaa4988..20d2c504 100644
--- a/Xamarin.Forms.Platform.WinRT/StreamImagesourceHandler.cs
+++ b/Xamarin.Forms.Platform.WinRT/StreamImagesourceHandler.cs
@@ -10,7 +10,7 @@ namespace Xamarin.Forms.Platform.UWP
#else
namespace Xamarin.Forms.Platform.WinRT
-#endif
+#endif
{
public sealed class StreamImagesourceHandler : IImageSourceHandler
{
@@ -21,7 +21,7 @@ namespace Xamarin.Forms.Platform.WinRT
var streamsource = imagesource as StreamImageSource;
if (streamsource != null && streamsource.Stream != null)
{
- using (Stream stream = await streamsource.GetStreamAsync(cancellationToken))
+ using (Stream stream = await ((IStreamImageSource)streamsource).GetStreamAsync(cancellationToken))
{
if (stream == null)
return null;