Ejemplo n.º 1
0
        public static void FreezeHubTile(HubTile tile)
        {
            WeakReference tile1 = new WeakReference((object)tile, false);

            HubTileService.AddReferenceToFrozenPool(tile1);
            HubTileService.RemoveReferenceFromEnabledPool(tile1);
            HubTileService.RemoveReferenceFromStalledPipeline(tile1);
        }
Ejemplo n.º 2
0
        internal static void InitializeReference(HubTile tile)
        {
            WeakReference tile1 = new WeakReference((object)tile, false);

            if (tile.IsFrozen)
            {
                HubTileService.AddReferenceToFrozenPool(tile1);
            }
            else
            {
                HubTileService.AddReferenceToEnabledPool(tile1);
            }
            HubTileService.RestartTimer();
        }