Exemplo n.º 1
0
        /// <summary>
        /// 使用可更新模式并检查版本资源列表。
        /// </summary>
        /// <param name="latestInternalResourceVersion">最新的资源内部版本号。</param>
        /// <returns>检查版本资源列表结果。</returns>
        public CheckVersionListResult CheckVersionList(int latestInternalResourceVersion)
        {
            if (m_ResourceMode == ResourceMode.Unspecified)
            {
                throw new AshException("You must set resource mode first.");
            }

            if (m_ResourceMode != ResourceMode.Updatable)
            {
                throw new AshException("You can not use InitResources without updatable resource mode.");
            }

            if (m_VersionListProcessor == null)
            {
                throw new AshException("You can not use CheckVersionList at this time.");
            }

            return(m_VersionListProcessor.CheckVersionList(latestInternalResourceVersion));
        }
Exemplo n.º 2
0
 public CheckVersionListResult CheckVersionList(int latestInternalResourceVersion)
 {
     return m_VersionListProcessor.CheckVersionList(latestInternalResoureVersion);
 }