summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/StreamImageSource.cs
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.Core/StreamImageSource.cs
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.Core/StreamImageSource.cs')
-rw-r--r--Xamarin.Forms.Core/StreamImageSource.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Xamarin.Forms.Core/StreamImageSource.cs b/Xamarin.Forms.Core/StreamImageSource.cs
index ae59ea3c..06926749 100644
--- a/Xamarin.Forms.Core/StreamImageSource.cs
+++ b/Xamarin.Forms.Core/StreamImageSource.cs
@@ -5,7 +5,7 @@ using System.Threading.Tasks;
namespace Xamarin.Forms
{
- public class StreamImageSource : ImageSource
+ public class StreamImageSource : ImageSource, IStreamImageSource
{
public static readonly BindableProperty StreamProperty = BindableProperty.Create("Stream", typeof(Func<CancellationToken, Task<Stream>>), typeof(StreamImageSource),
default(Func<CancellationToken, Task<Stream>>));
@@ -21,9 +21,9 @@ namespace Xamarin.Forms
if (propertyName == StreamProperty.PropertyName)
OnSourceChanged();
base.OnPropertyChanged(propertyName);
- }
+ }
- internal async Task<Stream> GetStreamAsync(CancellationToken userToken = default(CancellationToken))
+ async Task<Stream> IStreamImageSource.GetStreamAsync(CancellationToken userToken)
{
if (Stream == null)
return null;