// Token: 0x0600286E RID: 10350 RVA: 0x00095A18 File Offset: 0x00093C18
        public static string GetResourcesHash(ResourceBase[] resources, IPageContext context, bool bootResources, string owaVersion)
        {
            List <byte[]> list = new List <byte[]>();

            foreach (ResourceBase resourceBase in resources)
            {
                list.Add(Encoding.ASCII.GetBytes(resourceBase.GetResourcePath(context, bootResources).Replace(owaVersion, string.Empty)));
            }
            return(Convert.ToBase64String(AppCacheManifestHandlerBase.CalculateHashOnHashes(list)));
        }
        // Token: 0x06002654 RID: 9812 RVA: 0x0008A9C8 File Offset: 0x00088BC8
        private void WriteManifest(bool isOffline)
        {
            StringBuilder stringBuilder = new StringBuilder(this.ManifestTemplate);

            if (string.IsNullOrWhiteSpace(stringBuilder.ToString()))
            {
                string text = string.Format("User {0} request for {1} manifest fetched null or empty manifest", AppCacheManifestHandler.GetUserContextId(this.Context), this.UserAgent.Layout);
                ExTraceGlobals.AppcacheManifestHandlerTracer.TraceError((long)this.GetHashCode(), text);
                throw new ArgumentNullException(text);
            }
            bool generateBootResourcesAppcache = !isOffline;

            stringBuilder = this.AddTemplatedParameters(stringBuilder, generateBootResourcesAppcache);
            string text2 = stringBuilder.ToString();

            this.Response.Write(text2);
            string[] array = text2.Split(new char[]
            {
                '\r',
                '\n',
                ' ',
                '\t'
            }, StringSplitOptions.RemoveEmptyEntries);
            string        resourceDirectory = this.ResourceDirectory;
            List <byte[]> list = new List <byte[]>();

            foreach (string text3 in array)
            {
                if (text3.StartsWith(resourceDirectory))
                {
                    list.Add(AppCacheManifestHandlerBase.GetHash(text3.Substring(3), this.VersionString));
                }
            }
            IOrderedEnumerable <string> orderedEnumerable = from id in this.GetEnabledFeatures()
                                                            orderby id
                                                            select id;

            foreach (string s in orderedEnumerable)
            {
                list.Add(Encoding.ASCII.GetBytes(s));
            }
            this.Response.Write("# ComputedHash: ");
            this.Response.Write(Convert.ToBase64String(AppCacheManifestHandlerBase.CalculateHashOnHashes(list)));
            this.Response.Write("\r\n");
            this.Response.Write("# Offline: ");
            this.Response.Write(isOffline.ToString().ToLower());
            this.Response.Write("\r\n");
        }