コード例 #1
0
ファイル: Emulator.cs プロジェクト: dreamlive0815/PCRTools
        public EmulatorSize GetResolution()
        {
            var resolution = FrequencyLimitor.ParseObjWithCache(AheadWithName("Resolution"), 60 * 1000, (key) =>
            {
                return(GetResolutionDirectly());
            });

            return(resolution);
        }
コード例 #2
0
        public override string GetSpecificIdentity()
        {
            var identity = FrequencyLimitor.ParseObjWithCache(AheadWithName("SpecificIdentity"), 60 * 60 * 1000, (key) =>
            {
                var device = GetFirstOnlineDevice();
                if (device != null)
                {
                    return(device.SpecificIdentity);
                }
                return(base.GetSpecificIdentity());
            });

            return(identity);
        }