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
- WindowsStartMenu.cs
- BreakSafeBase.cs
- TargetParameterCountException.cs
- TraceLevelHelper.cs
- CalendarTable.cs
- Formatter.cs
- BitmapEffectInput.cs
- DataGridViewColumnStateChangedEventArgs.cs
- SQlBooleanStorage.cs
- XamlStyleSerializer.cs
- GridViewCellAutomationPeer.cs
- SystemIPInterfaceStatistics.cs
- CriticalFinalizerObject.cs
- CodeExpressionRuleDeclaration.cs
- FilterEventArgs.cs
- TableLayoutPanelDesigner.cs
- HttpModuleCollection.cs
- AnnotationResourceChangedEventArgs.cs
- TextServicesHost.cs
- util.cs
- DynamicDataRoute.cs
- NavigationCommands.cs
- PermissionListSet.cs
- DesignRelation.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- QuaternionKeyFrameCollection.cs
- Operators.cs
- Inline.cs
- WebBrowserBase.cs
- EntitySet.cs
- DelegatingTypeDescriptionProvider.cs
- BaseCAMarshaler.cs
- NamedPipeWorkerProcess.cs
- DiscreteKeyFrames.cs
- EntityDataSourceContextDisposingEventArgs.cs
- SQLByte.cs
- TemplateBuilder.cs
- PackageDigitalSignatureManager.cs
- WebBrowserNavigatedEventHandler.cs
- MeasureData.cs
- ProviderMetadataCachedInformation.cs
- Pkcs7Signer.cs
- XmlReflectionImporter.cs
- WebPartZoneCollection.cs
- TabPage.cs
- ListMarkerSourceInfo.cs
- NameObjectCollectionBase.cs
- RelatedCurrencyManager.cs
- InputLanguageManager.cs
- Rules.cs
- WindowCollection.cs
- RC2CryptoServiceProvider.cs
- OdbcEnvironment.cs
- Int16KeyFrameCollection.cs
- XmlSchemaObjectCollection.cs
- TypeDefinition.cs
- ManagedFilter.cs
- AutomationElement.cs
- DefaultPrintController.cs
- TypeInitializationException.cs
- ToolStripStatusLabel.cs
- XmlSerializerAssemblyAttribute.cs
- BlurBitmapEffect.cs
- DefaultTraceListener.cs
- TextRenderer.cs
- ISAPIApplicationHost.cs
- WindowsRichEdit.cs
- PathStreamGeometryContext.cs
- Latin1Encoding.cs
- Dispatcher.cs
- XmlConverter.cs
- EntitySetBaseCollection.cs
- ExtensionQuery.cs
- FragmentQuery.cs
- RoleManagerSection.cs
- LogicalTreeHelper.cs
- FormsAuthenticationCredentials.cs
- Logging.cs
- AssemblyAssociatedContentFileAttribute.cs
- ObjectDesignerDataSourceView.cs
- XmlArrayAttribute.cs
- GorillaCodec.cs
- Add.cs
- DataTemplateKey.cs
- ActionFrame.cs
- xmlNames.cs
- EditorResources.cs
- BamlRecordHelper.cs
- MarkupProperty.cs
- FontSizeConverter.cs
- _CommandStream.cs
- NativeMethods.cs
- WebPartMenuStyle.cs
- CalloutQueueItem.cs
- BamlLocalizationDictionary.cs
- RefreshEventArgs.cs
- EntityDataSourceStatementEditor.cs
- SQLSingleStorage.cs
- SortQuery.cs
- ConfigUtil.cs