Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / X509InitiatorCertificateServiceElement.cs / 1 / X509InitiatorCertificateServiceElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System; using System.ServiceModel; using System.Configuration; using System.ServiceModel.Channels; using System.ServiceModel.Security; using System.Xml; using System.Security.Cryptography.X509Certificates; public sealed partial class X509InitiatorCertificateServiceElement : ConfigurationElement { public X509InitiatorCertificateServiceElement() { } [ConfigurationProperty(ConfigurationStrings.Certificate)] public X509ClientCertificateCredentialsElement Certificate { get { return (X509ClientCertificateCredentialsElement)base[ConfigurationStrings.Certificate]; } } [ConfigurationProperty(ConfigurationStrings.Authentication)] public X509ClientCertificateAuthenticationElement Authentication { get { return (X509ClientCertificateAuthenticationElement)base[ConfigurationStrings.Authentication]; } } public void Copy(X509InitiatorCertificateServiceElement from) { if (this.IsReadOnly()) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(SR.GetString(SR.ConfigReadOnly))); } if (null == from) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("from"); } this.Authentication.Copy(from.Authentication); this.Certificate.Copy(from.Certificate); } internal void ApplyConfiguration(X509CertificateInitiatorServiceCredential cert) { if (cert == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("cert"); } PropertyInformationCollection propertyInfo = this.ElementInformation.Properties; if (propertyInfo[ConfigurationStrings.Authentication].ValueOrigin != PropertyValueOrigin.Default) { this.Authentication.ApplyConfiguration(cert.Authentication); } if (propertyInfo[ConfigurationStrings.Certificate].ValueOrigin != PropertyValueOrigin.Default) { this.Certificate.ApplyConfiguration(cert); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PeerNameRecord.cs
- QueryTaskGroupState.cs
- UserPreferenceChangedEventArgs.cs
- CompositeDesignerAccessibleObject.cs
- WpfKnownMember.cs
- SqlNotificationRequest.cs
- BatchWriter.cs
- SystemNetworkInterface.cs
- Utilities.cs
- PlainXmlWriter.cs
- EntityRecordInfo.cs
- TemplateBuilder.cs
- XmlStreamStore.cs
- ObjectDataSourceSelectingEventArgs.cs
- TraceUtils.cs
- ProcessRequestAsyncResult.cs
- TreeNodeSelectionProcessor.cs
- DataGrid.cs
- ConsumerConnectionPoint.cs
- StrongNameKeyPair.cs
- StylusTip.cs
- ImageMapEventArgs.cs
- SqlInternalConnection.cs
- AppAction.cs
- SqlGenericUtil.cs
- StreamAsIStream.cs
- SiteMapPath.cs
- CommandEventArgs.cs
- SmiRequestExecutor.cs
- SqlWebEventProvider.cs
- XsdDateTime.cs
- ChildChangedEventArgs.cs
- IfJoinedCondition.cs
- TransformerConfigurationWizardBase.cs
- DataSysAttribute.cs
- BitmapEffectDrawingContextState.cs
- typedescriptorpermission.cs
- ValidatorCompatibilityHelper.cs
- FontCollection.cs
- PropertyReferenceSerializer.cs
- Dictionary.cs
- ProviderManager.cs
- TypeNameConverter.cs
- NumericUpDownAccelerationCollection.cs
- EntityContainerAssociationSetEnd.cs
- BitmapEffectCollection.cs
- Error.cs
- EndEvent.cs
- GridViewColumnCollection.cs
- XmlBinaryReader.cs
- DataSourceProvider.cs
- BinHexEncoder.cs
- XPathNavigatorKeyComparer.cs
- PageBuildProvider.cs
- ReceiveErrorHandling.cs
- uribuilder.cs
- DataGridPagerStyle.cs
- InternalDispatchObject.cs
- CacheEntry.cs
- ClearTypeHintValidation.cs
- WebPartAddingEventArgs.cs
- DataControlField.cs
- _NtlmClient.cs
- RepeatBehavior.cs
- CharUnicodeInfo.cs
- SystemKeyConverter.cs
- PageAsyncTask.cs
- XmlQueryCardinality.cs
- AlternationConverter.cs
- HtmlWindowCollection.cs
- SelectorAutomationPeer.cs
- HitTestWithGeometryDrawingContextWalker.cs
- FactoryMaker.cs
- ValidationErrorEventArgs.cs
- MailMessageEventArgs.cs
- ExceptionRoutedEventArgs.cs
- HandlerBase.cs
- CustomExpression.cs
- AmbiguousMatchException.cs
- DecodeHelper.cs
- Matrix3D.cs
- DescendantBaseQuery.cs
- SchemaComplexType.cs
- ParenthesizePropertyNameAttribute.cs
- EdmMember.cs
- SamlDelegatingWriter.cs
- AppDomainAttributes.cs
- ClientProxyGenerator.cs
- KeyPressEvent.cs
- SystemSounds.cs
- Vector3D.cs
- SSmlParser.cs
- ManagementInstaller.cs
- DPTypeDescriptorContext.cs
- PermissionSetTriple.cs
- Tracking.cs
- EncodingNLS.cs
- SafeEventLogWriteHandle.cs
- AtlasWeb.Designer.cs
- InternalSafeNativeMethods.cs