54 references to State
System.ServiceModel (50)
System\ServiceModel\Channels\SecurityBindingElementImporter.cs (10)
227
if (importer.
State
.ContainsKey(contractAssociationName))
230
otherBindingProtectionLevel = (ContractProtectionLevel)importer.
State
[contractAssociationName];
240
if (importer.
State
.ContainsKey(InSecureConversationBootstrapBindingImportMode))
245
importer.
State
[SecureConversationBootstrapEncryptionRequirements] = endpointEncryptedParts;
247
importer.
State
[SecureConversationBootstrapSignatureRequirements] = endpointSignedParts;
421
importer.
State
[contractAssociationName] = new ContractProtectionLevel(hasContractProtectionLevel, isContractProtectionLevelUniform, contractProtectionLevel);
590
if (importer.
State
.ContainsKey(InSecureConversationBootstrapBindingImportMode))
649
if ((importer.
State
!= null) && (!importer.
State
.ContainsKey(MaxPolicyRedirectionsKey)))
651
importer.
State
.Add(MaxPolicyRedirectionsKey, this.MaxPolicyRedirections);
System\ServiceModel\Channels\TransportBindingElementImporter.cs (2)
205
if (!importer.
State
.TryGetValue(StateHelper.StateBagKey, out retValue))
208
importer.
State
.Add(StateHelper.StateBagKey, retValue);
System\ServiceModel\Description\MessageContractImporter.cs (17)
134
if (this.importer.
State
.TryGetValue(typeof(FaultImportOptions), out faultImportOptions))
763
if (this.importer.
State
.TryGetValue(typeof(WrappedOptions), out wrappedOptions))
1573
if (!importer.
State
.TryGetValue(typeof(XsdDataContractImporter), out dataContractImporter))
1576
if (!importer.
State
.TryGetValue(typeof(CodeCompileUnit), out compileUnit))
1579
importer.
State
.Add(typeof(CodeCompileUnit), compileUnit);
1582
importer.
State
.Add(typeof(XsdDataContractImporter), dataContractImporter);
1641
if (importer.
State
.ContainsKey(type))
1642
schemaImporter = importer.
State
[type];
1646
importer.
State
.Add(type, schemaImporter);
1925
if (importer.
State
.ContainsKey(typeof(XmlSerializerImportOptions)))
1927
options = (XmlSerializerImportOptions)importer.
State
[typeof(XmlSerializerImportOptions)];
1932
if (!importer.
State
.TryGetValue(typeof(CodeCompileUnit), out compileUnit))
1935
importer.
State
.Add(typeof(CodeCompileUnit), compileUnit);
1938
importer.
State
.Add(typeof(XmlSerializerImportOptions), options);
1999
if (importer.
State
.ContainsKey(type))
2000
schemaImporter = importer.
State
[type];
2004
importer.
State
.Add(type, schemaImporter);
System\ServiceModel\Description\MetadataResolver.cs (1)
237
importer.
State
.Add(MetadataExchangeClient.MetadataExchangeClientKey, client);
System\ServiceModel\Security\WSSecurityPolicy.cs (20)
591
if (false == importer.
State
.ContainsKey(SecurityBindingElementImporter.InSecureConversationBootstrapBindingImportMode))
2725
importer.
State
[SecurityBindingElementImporter.InSecureConversationBootstrapBindingImportMode] = SecurityBindingElementImporter.InSecureConversationBootstrapBindingImportMode;
2729
if (importer.
State
.ContainsKey(SecurityBindingElementImporter.SecureConversationBootstrapEncryptionRequirements))
2731
MessagePartSpecification encryption = (MessagePartSpecification)importer.
State
[SecurityBindingElementImporter.SecureConversationBootstrapEncryptionRequirements];
2738
if (importer.
State
.ContainsKey(SecurityBindingElementImporter.SecureConversationBootstrapSignatureRequirements))
2740
MessagePartSpecification signature = (MessagePartSpecification)importer.
State
[SecurityBindingElementImporter.SecureConversationBootstrapSignatureRequirements];
2750
importer.
State
.Remove(SecurityBindingElementImporter.InSecureConversationBootstrapBindingImportMode);
2751
if (importer.
State
.ContainsKey(SecurityBindingElementImporter.SecureConversationBootstrapEncryptionRequirements))
2752
importer.
State
.Remove(SecurityBindingElementImporter.SecureConversationBootstrapEncryptionRequirements);
2753
if (importer.
State
.ContainsKey(SecurityBindingElementImporter.SecureConversationBootstrapSignatureRequirements))
2754
importer.
State
.Remove(SecurityBindingElementImporter.SecureConversationBootstrapSignatureRequirements);
2856
int maximumRedirections = (int)importer.
State
[SecurityBindingElementImporter.MaxPolicyRedirectionsKey];
2869
if ((importer.
State
!= null) && (importer.
State
.ContainsKey(MetadataExchangeClient.MetadataExchangeClientKey)))
2871
policyFetcher = importer.
State
[MetadataExchangeClient.MetadataExchangeClientKey] as MetadataExchangeClient;
2942
if ((importer.
State
!= null) && (importer.
State
.ContainsKey(MetadataExchangeClient.MetadataExchangeClientKey)))
2944
wsdlImporter.
State
.Add(MetadataExchangeClient.MetadataExchangeClientKey, importer.
State
[MetadataExchangeClient.MetadataExchangeClientKey]);
2947
wsdlImporter.
State
.Add(SecurityBindingElementImporter.MaxPolicyRedirectionsKey, maximumRedirections);
System.Web.Extensions (4)
Compilation\WCFModel\VSWCFServiceContractGenerator.cs (4)
1301
importer.
State
.Add(typeof(System.Runtime.Serialization.XsdDataContractImporter),
1306
importer.
State
.Add(typeof(System.ServiceModel.Channels.XmlSerializerImportOptions),
1318
importer.
State
.Add(typeof(System.ServiceModel.FaultImportOptions), faultOptions);
1324
importer.
State
.Add(typeof(System.ServiceModel.Channels.WrappedOptions), wrappedOptions);