/// <summary>
 /// Post-processes cached images.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">An <see cref="PostProcessingEventArgs">EventArgs</see> that contains the event data.</param>
 private static void PostProcess(object sender, PostProcessingEventArgs e)
 {
     e.ImageStream = PostProcessor.PostProcessImageAsync(e.Context, e.ImageStream, e.ImageExtension).Result;
 }
Beispiel #2
0
 /// <summary>
 /// Asynchronously post-processes cached images.
 /// </summary>
 /// <param name="sender">
 /// The source of the event.
 /// </param>
 /// <param name="e">
 /// An <see cref="PostProcessingEventArgs">EventArgs</see> that contains the event data.
 /// </param>
 private static void PostProcess(object sender, PostProcessingEventArgs e)
 {
     e.ImageStream = PostProcessor.PostProcessImage(e.ImageStream, e.ImageExtension);
 }