Beispiel #1
0
 /// <summary>
 /// Constructs a new TaskParameter to load an image from a Stream.
 /// </summary>
 /// <returns>The new TaskParameter.</returns>
 /// <param name="resourceName">A function that allows a CancellationToken and returns the Stream to use. This function will be invoked by LoadStream().</param>
 public TaskParameter LoadStream(Func <CancellationToken, Task <Stream> > stream)
 {
     InitializeIfNeeded();
     return(TaskParameter.FromStream(stream));
 }
Beispiel #2
0
 public TaskParameter LoadStream(Func <CancellationToken, Task <Stream> > stream)
 {
     return(TaskParameter.FromStream(stream));
 }