コード例 #1
0
        /// <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
        }
コード例 #2
0
        /// <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
        }
コード例 #3
0
        public async override Task Init()
        {
            await ScaleHelper.InitAsync();

            await base.Init();
        }
コード例 #4
0
 public static void Init()
 {
     CachedImage.IsRendererInitialized = true;
     ScaleHelper.InitAsync();
 }
コード例 #5
0
        public async override Task Init()
        {
            await ScaleHelper.InitAsync().ConfigureAwait(false);

            await base.Init().ConfigureAwait(false);
        }
コード例 #6
0
        public override async Task Init()
        {
            await ScaleHelper.InitAsync().ConfigureAwait(continueOnCapturedContext: false);

            await base.Init().ConfigureAwait(continueOnCapturedContext: false);
        }