コード例 #1
0
        private IEnumerator updateContentManifest()
        {
            ContentSystemManager contentSystemManager = Service.Get <ContentSystemManager>();

            yield return(contentSystemManager.UpdateContentSystem(forceUpdate: false));

            startScreen();
        }
コード例 #2
0
        public override IEnumerator PerformFirstPass()
        {
            IGcsAccessTokenService gcsAccessTokenService = new GcsAccessTokenService(ConfigHelper.GetEnvironmentProperty <string>("GcsServiceAccountName"), new GcsP12AssetFileLoader(ConfigHelper.GetEnvironmentProperty <string>("GcsServiceAccountFile")));

            Service.Set(gcsAccessTokenService);
            ICPipeManifestService cpipeManifestService = new CPipeManifestService(ContentHelper.GetCdnUrl(), ContentHelper.GetCpipeMappingFilename(), gcsAccessTokenService);

            Service.Set(cpipeManifestService);
            ContentSystemManager contentSystemManager = new ContentSystemManager(Service.Get <ApplicationService>());

            Service.Set(contentSystemManager);
            yield return(contentSystemManager.InitContentSystem());
        }