Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / MsmqTransportSecurityElement.cs / 1 / MsmqTransportSecurityElement.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Configuration { using System.Configuration; using System.Globalization; using System.Net; using System.Net.Security; using System.ServiceModel; using System.ServiceModel.Channels; using System.ServiceModel.Security; using System.ComponentModel; public sealed partial class MsmqTransportSecurityElement : ConfigurationElement { [ConfigurationProperty(ConfigurationStrings.MsmqAuthenticationMode, DefaultValue = MsmqDefaults.MsmqAuthenticationMode)] [ServiceModelEnumValidator(typeof(MsmqAuthenticationModeHelper))] public MsmqAuthenticationMode MsmqAuthenticationMode { get { return (MsmqAuthenticationMode)base[ConfigurationStrings.MsmqAuthenticationMode]; } set { base[ConfigurationStrings.MsmqAuthenticationMode] = value; } } [ConfigurationProperty(ConfigurationStrings.MsmqEncryptionAlgorithm, DefaultValue = MsmqDefaults.MsmqEncryptionAlgorithm)] [ServiceModelEnumValidator(typeof(MsmqEncryptionAlgorithmHelper))] public MsmqEncryptionAlgorithm MsmqEncryptionAlgorithm { get { return (MsmqEncryptionAlgorithm)base[ConfigurationStrings.MsmqEncryptionAlgorithm]; } set { base[ConfigurationStrings.MsmqEncryptionAlgorithm] = value; } } [ConfigurationProperty(ConfigurationStrings.MsmqProtectionLevel, DefaultValue = MsmqDefaults.MsmqProtectionLevel)] [ServiceModelEnumValidator(typeof(ProtectionLevelHelper))] public ProtectionLevel MsmqProtectionLevel { get { return (ProtectionLevel)base[ConfigurationStrings.MsmqProtectionLevel]; } set { base[ConfigurationStrings.MsmqProtectionLevel] = value; } } [ConfigurationProperty(ConfigurationStrings.MsmqSecureHashAlgorithm, DefaultValue = MsmqDefaults.MsmqSecureHashAlgorithm)] [ServiceModelEnumValidator(typeof(MsmqSecureHashAlgorithmHelper))] public MsmqSecureHashAlgorithm MsmqSecureHashAlgorithm { get { return (MsmqSecureHashAlgorithm)base[ConfigurationStrings.MsmqSecureHashAlgorithm]; } set { base[ConfigurationStrings.MsmqSecureHashAlgorithm] = value; } } internal void ApplyConfiguration(MsmqTransportSecurity security) { if (security == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); security.MsmqAuthenticationMode = this.MsmqAuthenticationMode; security.MsmqEncryptionAlgorithm = this.MsmqEncryptionAlgorithm; security.MsmqProtectionLevel = this.MsmqProtectionLevel; security.MsmqSecureHashAlgorithm = this.MsmqSecureHashAlgorithm; } internal void InitializeFrom(MsmqTransportSecurity security) { if (security == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security"); this.MsmqAuthenticationMode = security.MsmqAuthenticationMode; this.MsmqEncryptionAlgorithm = security.MsmqEncryptionAlgorithm; this.MsmqProtectionLevel = security.MsmqProtectionLevel; this.MsmqSecureHashAlgorithm = security.MsmqSecureHashAlgorithm; } } } // 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
- ProtectedConfigurationProviderCollection.cs
- CompositeDataBoundControl.cs
- _HeaderInfo.cs
- FunctionImportElement.cs
- TTSVoice.cs
- SByteConverter.cs
- SelectionEditor.cs
- DataGridViewSelectedRowCollection.cs
- DesignerSerializationManager.cs
- DbConnectionPoolIdentity.cs
- EntityDataSourceColumn.cs
- ConstructorExpr.cs
- Environment.cs
- FormViewPagerRow.cs
- TwoPhaseCommitProxy.cs
- RecordsAffectedEventArgs.cs
- IDQuery.cs
- BufferBuilder.cs
- AppDomainProtocolHandler.cs
- CellConstant.cs
- DecimalAnimation.cs
- CreateUserWizard.cs
- PointConverter.cs
- AssertFilter.cs
- CodeAttributeDeclarationCollection.cs
- MetadataUtilsSmi.cs
- ExpandCollapsePatternIdentifiers.cs
- ComplexLine.cs
- HttpServerVarsCollection.cs
- NamespaceQuery.cs
- DES.cs
- CaretElement.cs
- PrintEvent.cs
- EntryPointNotFoundException.cs
- ReflectionPermission.cs
- SpanIndex.cs
- CodeAttachEventStatement.cs
- PackagingUtilities.cs
- DocumentOrderComparer.cs
- Peer.cs
- SEHException.cs
- XPathAncestorIterator.cs
- Formatter.cs
- PenLineJoinValidation.cs
- ActivityFunc.cs
- ScaleTransform.cs
- ComponentCollection.cs
- TreeViewAutomationPeer.cs
- CriticalFinalizerObject.cs
- PolicyValidationException.cs
- WindowsImpersonationContext.cs
- ObjectReferenceStack.cs
- CodeChecksumPragma.cs
- SQLUtility.cs
- DecimalKeyFrameCollection.cs
- CodeIdentifiers.cs
- ScrollPattern.cs
- TypedAsyncResult.cs
- HtmlEncodedRawTextWriter.cs
- MethodMessage.cs
- PriorityItem.cs
- GridViewCommandEventArgs.cs
- ClientApiGenerator.cs
- FixedSOMTextRun.cs
- HotSpotCollection.cs
- SchemaCollectionPreprocessor.cs
- PagesSection.cs
- XPathDocument.cs
- MobileErrorInfo.cs
- AppDomainAttributes.cs
- DispatchProxy.cs
- ListComponentEditor.cs
- DataGrid.cs
- XmlChildNodes.cs
- _IPv6Address.cs
- FixedSOMTableRow.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- TokenBasedSet.cs
- BitmapEffectInputData.cs
- IdentityModelStringsVersion1.cs
- CustomAttribute.cs
- EventMappingSettingsCollection.cs
- TypedReference.cs
- ExpressionBuilderContext.cs
- DirtyTextRange.cs
- MailWriter.cs
- CompiledRegexRunnerFactory.cs
- TransformConverter.cs
- ProviderSettingsCollection.cs
- TreePrinter.cs
- SetIndexBinder.cs
- BinaryKeyIdentifierClause.cs
- RijndaelManagedTransform.cs
- InvalidOperationException.cs
- MouseButtonEventArgs.cs
- EncryptedType.cs
- Pens.cs
- ComPlusTypeValidator.cs
- X509ChainPolicy.cs
- RenderDataDrawingContext.cs