示例#1
0
 public RemoveExpiredManifestsCommand(Func <ContentDbContext> dbContextProvider, ILogger <RemoveExpiredManifestsCommand> logger, IManifestConfig manifestConfig, IUtcDateTimeProvider dateTimeProvider)
 {
     _DbContextProvider = dbContextProvider ?? throw new ArgumentNullException(nameof(dbContextProvider));
     _Logger            = logger ?? throw new ArgumentNullException(nameof(logger));
     _ManifestConfig    = manifestConfig ?? throw new ArgumentNullException(nameof(manifestConfig));
     _DateTimeProvider  = dateTimeProvider ?? throw new ArgumentNullException(nameof(manifestConfig));
 }
示例#2
0
        //=================================
        //	関数
        //=================================

        public RuntimeManifestLoader(IManifestConfig config, RuntimePlatform platform)
        {
            m_versionLoader = config.BuildVersionLoader(platform);
            var location = config.GetSaveStorage(platform);
            var dirPath  = location.BasePath;

            if (!Directory.Exists(dirPath))
            {
                Directory.CreateDirectory(dirPath);
            }
            var cache = Caching.GetCacheByPath(dirPath);

            if (cache.valid)
            {
                m_cache = cache;
                return;
            }
            m_cache = Caching.AddCache(dirPath);
        }
示例#3
0
 public abstract IManifestLoader Build(RuntimePlatform platform, IManifestConfig config);
示例#4
0
 public override IManifestLoader Build(RuntimePlatform platform, IManifestConfig config)
 {
     return(new RuntimeManifestLoader(config, platform));
 }
示例#5
0
 public override IManifestLoader Build(RuntimePlatform platform, IManifestConfig config)
 {
     return(new StreamingAssetsManifestLoader());
 }
示例#6
0
 public override IManifestLoader Build(RuntimePlatform platform, IManifestConfig config)
 {
     return(new EmptyManifestLoader());
 }