58 references to State
dotnet-svcutil-lib (58)
CodeDomFixup\WcfCodeGenerationExtension.cs (2)
111if (importer.State.ContainsKey(typeof(XsdDataContractImporter))) 113XsdDataContractImporter xsdImporter = (XsdDataContractImporter)importer.State[typeof(XsdDataContractImporter)];
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\AsymmetricSecurityBindingElement.cs (10)
226if (importer.State.ContainsKey(contractAssociationName)) 229otherBindingProtectionLevel = (ContractProtectionLevel)importer.State[contractAssociationName]; 239if (importer.State.ContainsKey(InSecureConversationBootstrapBindingImportMode)) 244importer.State[SecureConversationBootstrapEncryptionRequirements] = endpointEncryptedParts; 246importer.State[SecureConversationBootstrapSignatureRequirements] = endpointSignedParts; 420importer.State[contractAssociationName] = new ContractProtectionLevel(hasContractProtectionLevel, isContractProtectionLevelUniform, contractProtectionLevel); 589if (importer.State.ContainsKey(InSecureConversationBootstrapBindingImportMode)) 647if ((importer.State != null) && (!importer.State.ContainsKey(MaxPolicyRedirectionsKey))) 649importer.State.Add(MaxPolicyRedirectionsKey, this.MaxPolicyRedirections);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TransportBindingElementImporter.cs (2)
196if (!importer.State.TryGetValue(StateHelper.s_stateBagKey, out retValue)) 199importer.State.Add(StateHelper.s_stateBagKey, retValue);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (17)
133if (_importer.State.TryGetValue(typeof(FaultImportOptions), out faultImportOptions)) 751if (_importer.State.TryGetValue(typeof(WrappedOptions), out wrappedOptions)) 1561if (!importer.State.TryGetValue(typeof(XsdDataContractImporter), out dataContractImporter)) 1564if (!importer.State.TryGetValue(typeof(CodeCompileUnit), out compileUnit)) 1567importer.State.Add(typeof(CodeCompileUnit), compileUnit); 1570importer.State.Add(typeof(XsdDataContractImporter), dataContractImporter); 1629if (importer.State.ContainsKey(type)) 1630schemaImporter = importer.State[type]; 1634importer.State.Add(type, schemaImporter); 1912if (importer.State.ContainsKey(typeof(XmlSerializerImportOptions))) 1914options = (XmlSerializerImportOptions)importer.State[typeof(XmlSerializerImportOptions)]; 1919if (!importer.State.TryGetValue(typeof(CodeCompileUnit), out compileUnit)) 1922importer.State.Add(typeof(CodeCompileUnit), compileUnit); 1925importer.State.Add(typeof(XmlSerializerImportOptions), options); 1986if (importer.State.ContainsKey(type)) 1987schemaImporter = importer.State[type]; 1991importer.State.Add(type, schemaImporter);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityPolicy.cs (20)
591if (false == importer.State.ContainsKey(SecurityBindingElementImporter.InSecureConversationBootstrapBindingImportMode)) 2725importer.State[SecurityBindingElementImporter.InSecureConversationBootstrapBindingImportMode] = SecurityBindingElementImporter.InSecureConversationBootstrapBindingImportMode; 2729if (importer.State.ContainsKey(SecurityBindingElementImporter.SecureConversationBootstrapEncryptionRequirements)) 2731MessagePartSpecification encryption = (MessagePartSpecification)importer.State[SecurityBindingElementImporter.SecureConversationBootstrapEncryptionRequirements]; 2738if (importer.State.ContainsKey(SecurityBindingElementImporter.SecureConversationBootstrapSignatureRequirements)) 2740MessagePartSpecification signature = (MessagePartSpecification)importer.State[SecurityBindingElementImporter.SecureConversationBootstrapSignatureRequirements]; 2750importer.State.Remove(SecurityBindingElementImporter.InSecureConversationBootstrapBindingImportMode); 2751if (importer.State.ContainsKey(SecurityBindingElementImporter.SecureConversationBootstrapEncryptionRequirements)) 2752importer.State.Remove(SecurityBindingElementImporter.SecureConversationBootstrapEncryptionRequirements); 2753if (importer.State.ContainsKey(SecurityBindingElementImporter.SecureConversationBootstrapSignatureRequirements)) 2754importer.State.Remove(SecurityBindingElementImporter.SecureConversationBootstrapSignatureRequirements); 2856int maximumRedirections = (int)importer.State[SecurityBindingElementImporter.MaxPolicyRedirectionsKey]; 2869if ((importer.State != null) && (importer.State.ContainsKey(MetadataExchangeClient.MetadataExchangeClientKey))) 2871policyFetcher = importer.State[MetadataExchangeClient.MetadataExchangeClientKey] as MetadataExchangeClient; 2942if ((importer.State != null) && (importer.State.ContainsKey(MetadataExchangeClient.MetadataExchangeClientKey))) 2944wsdlImporter.State.Add(MetadataExchangeClient.MetadataExchangeClientKey, importer.State[MetadataExchangeClient.MetadataExchangeClientKey]); 2947wsdlImporter.State.Add(SecurityBindingElementImporter.MaxPolicyRedirectionsKey, maximumRedirections);
ImportModule.cs (6)
350importer.State.Add(typeof(XmlSerializerImportOptions), importOptions); 352if (!importer.State.ContainsKey(typeof(WrappedOptions))) 353importer.State.Add(typeof(WrappedOptions), new WrappedOptions { WrappedFlag = options.Wrapped == true }); 359importer.State.Add(typeof(DcNS.XsdDataContractImporter), xsdDataContractImporter); 360if (!importer.State.ContainsKey(typeof(WrappedOptions))) 361importer.State.Add(typeof(WrappedOptions), new WrappedOptions { WrappedFlag = options.Wrapped == true });
Metadata\ServiceDescriptor.cs (1)
301wsdlImporter.State.Add(typeof(FaultImportOptions), new FaultImportOptions() { UseMessageFormat = useMessageFormat });