示例#1
0
        /// <summary>
        /// Called when a <see cref="CheckUpdateStatus"/> has terminated.
        /// </summary>
        /// <param name="result">The <see cref="JobResult"/>.</param>
        /// <remarks>
        /// Runs on the UI thread.
        /// </remarks>
        void CheckUpdateStatus(JobResult result)
        {
            string localResourceMd5 = null;

            if (result.Job.IsFinished)
            {
                localResourceMd5 = new Common.FileSystem.DataResource(result.Resource.DataAsset, FileSystem).ComputeMd5();
                ResourceTree.FinishStatusCheck(result, localResourceMd5);
            }
            else
            {
                ResourceTree.FinishStatusCheck(result, null);
            }
        }
        /// <summary>
        /// Called when a <see cref="CheckUpdateStatus"/> has terminated.
        /// </summary>
        /// <param name="result">The <see cref="JobResult"/>.</param>
        /// <remarks>
        /// Runs on the UI thread.
        /// </remarks>
        void CheckUpdateStatus(JobResult result)
        {
            string localResourceMd5 = null;

            if (result.Job.IsFinished)
            {
                localResourceMd5 = new Common.FileSystem.DataResource(result.Resource.DataAsset, FileSystem).ComputeMd5();
                ResourceTree.FinishStatusCheck(result, localResourceMd5);
            }
            else
                ResourceTree.FinishStatusCheck(result, null);
        }