// Token: 0x0600286B RID: 10347 RVA: 0x000958E8 File Offset: 0x00093AE8
        internal static Slab CreateUserBootSlab(SlabManifestType manifestType, LayoutType layout, string owaVersion)
        {
            BootSlabDefinition bootSlabDefinition = SlabManifestCollectionFactory.GetInstance(owaVersion).GetSlabManifest(manifestType, layout).GetBootSlabDefinition();
            UserContext        userContext        = (manifestType == SlabManifestType.Anonymous || manifestType == SlabManifestType.GenericMail) ? null : UserContextManager.GetUserContext(HttpContext.Current);

            string[] enabledFeatures = UserResourcesFinder.GetEnabledFeatures(manifestType, userContext);
            return(bootSlabDefinition.GetSlab(enabledFeatures, layout));
        }
示例#2
0
 public SlabManifest(BootSlabDefinition bootSlabDefinition, IDictionary <string, SlabDefinition> slabDefinitions)
 {
     if (bootSlabDefinition == null)
     {
         throw new ArgumentNullException("bootSlabDefinition");
     }
     if (slabDefinitions == null)
     {
         throw new ArgumentNullException("slabDefinitions");
     }
     this.bootSlabDefinition = bootSlabDefinition;
     this.slabDefinitions    = slabDefinitions;
     this.slabDefinitions.Add("boot", bootSlabDefinition);
 }