/// <summary> /// Used for registration with dependency service /// </summary> public static void Init() { CachedImage.IsRendererInitialized = true; #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed ScaleHelper.InitAsync(); #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed }
/// <summary> /// Used for registration with dependency service /// </summary> public static new void Init() { CachedImage.IsRendererInitialized = true; // needed because of this STUPID linker issue: https://bugzilla.xamarin.com/show_bug.cgi?id=31076 #pragma warning disable 0219 var ignore1 = typeof(CachedImageRenderer); var ignore2 = typeof(CachedImage); #pragma warning restore 0219 #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed ScaleHelper.InitAsync(); #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed }
public async override Task Init() { await ScaleHelper.InitAsync(); await base.Init(); }
public static void Init() { CachedImage.IsRendererInitialized = true; ScaleHelper.InitAsync(); }
public async override Task Init() { await ScaleHelper.InitAsync().ConfigureAwait(false); await base.Init().ConfigureAwait(false); }
public override async Task Init() { await ScaleHelper.InitAsync().ConfigureAwait(continueOnCapturedContext: false); await base.Init().ConfigureAwait(continueOnCapturedContext: false); }