HostedTransportConfigurationManager() { if (!Iis7Helper.IsIis7) { metabaseSettings = new MetabaseSettingsIis6(); } else { metabaseSettings = CreateWasHostingMetabaseSettings(); } }
private ExtendedProtectionPolicy GetExtendedProtectionPolicy() { using (RegistryKey key = Registry.LocalMachine.OpenSubKey(@"System\CurrentControlSet\Services\W3SVC\Parameters\ExtendedProtection")) { if (key != null) { object obj2 = key.GetValue("tokenChecking"); object obj3 = key.GetValue("flags"); object obj4 = key.GetValue("spns"); ExtendedProtectionTokenChecking tokenChecking = (obj2 == null) ? ExtendedProtectionTokenChecking.None : ((ExtendedProtectionTokenChecking)obj2); ExtendedProtectionFlags flags = (obj3 == null) ? ExtendedProtectionFlags.None : ((ExtendedProtectionFlags)obj3); List <string> spnList = (obj4 == null) ? null : new List <string>(obj4 as string[]); return(MetabaseSettings.BuildExtendedProtectionPolicy(tokenChecking, flags, spnList)); } if (DiagnosticUtility.ShouldTraceWarning) { TraceUtility.TraceEvent(TraceEventType.Warning, 0x90008, System.ServiceModel.Activation.SR.TraceCodeWebHostNoCBTSupport, this, null); } } return(null); }
HostedTransportConfigurationManager(MetabaseSettings metabaseSettings) { this.metabaseSettings = metabaseSettings; }