Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / MsmqIntegration / MsmqIntegrationSecurity.cs / 1 / MsmqIntegrationSecurity.cs
//---------------------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------------------- namespace System.ServiceModel.MsmqIntegration { using System.Net.Security; using System.ServiceModel.Channels; public sealed class MsmqIntegrationSecurity { internal const MsmqIntegrationSecurityMode DefaultMode = MsmqIntegrationSecurityMode.Transport; MsmqIntegrationSecurityMode mode; MsmqTransportSecurity transportSecurity; public MsmqIntegrationSecurity() { this.mode = DefaultMode; this.transportSecurity = new MsmqTransportSecurity(); } public MsmqIntegrationSecurityMode Mode { get { return this.mode; } set { if (!MsmqIntegrationSecurityModeHelper.IsDefined(value)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value")); } this.mode = value; } } public MsmqTransportSecurity Transport { get { return this.transportSecurity; } } internal void ConfigureTransportSecurity(MsmqBindingElementBase msmq) { if (this.mode == MsmqIntegrationSecurityMode.Transport) msmq.MsmqTransportSecurity = this.Transport; else msmq.MsmqTransportSecurity.Disable(); } } } // 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
- Drawing.cs
- StyleSheet.cs
- HostSecurityManager.cs
- ResponseBodyWriter.cs
- httpapplicationstate.cs
- MessageEncoderFactory.cs
- FirstMatchCodeGroup.cs
- arclist.cs
- SecurityPolicySection.cs
- TreeViewImageIndexConverter.cs
- DeferredRunTextReference.cs
- wmiutil.cs
- MemberProjectionIndex.cs
- ConfigurationLocation.cs
- BitmapSourceSafeMILHandle.cs
- DateTime.cs
- Rect3D.cs
- CompModHelpers.cs
- DynamicUpdateCommand.cs
- ToggleButton.cs
- CryptoProvider.cs
- MeasureData.cs
- BaseWebProxyFinder.cs
- TypeConverterAttribute.cs
- Funcletizer.cs
- XmlUtf8RawTextWriter.cs
- SafeRightsManagementPubHandle.cs
- ButtonChrome.cs
- VirtualPathProvider.cs
- CardSpaceShim.cs
- xmlfixedPageInfo.cs
- TemplateApplicationHelper.cs
- DataConnectionHelper.cs
- SerializationAttributes.cs
- MarginsConverter.cs
- LinqDataSourceStatusEventArgs.cs
- DataAdapter.cs
- TabControlToolboxItem.cs
- WebPartTransformerCollection.cs
- VisualStyleTypesAndProperties.cs
- CodeMemberField.cs
- ImageFormatConverter.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- LogicalChannelCollection.cs
- DataSourceXmlClassAttribute.cs
- ServiceOperationParameter.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- WsatProxy.cs
- DataGridColumnHeaderCollection.cs
- SettingsAttributes.cs
- TransformerInfoCollection.cs
- CultureSpecificStringDictionary.cs
- dsa.cs
- PropertyMapper.cs
- NullReferenceException.cs
- SoapFormatter.cs
- PropertyMapper.cs
- safemediahandle.cs
- SqlDelegatedTransaction.cs
- DateTimeOffsetAdapter.cs
- TextElementCollection.cs
- SoapSchemaImporter.cs
- StringExpressionSet.cs
- LinkAreaEditor.cs
- DiscoveryClientReferences.cs
- ObjectQueryState.cs
- securitymgrsite.cs
- CookieParameter.cs
- ProcessHostMapPath.cs
- Converter.cs
- InputBinder.cs
- ProxyWebPartManager.cs
- CharacterString.cs
- SmtpCommands.cs
- DropDownButton.cs
- DictionaryEntry.cs
- Empty.cs
- OleDbRowUpdatedEvent.cs
- BehaviorEditorPart.cs
- WorkflowViewElement.cs
- HttpConfigurationContext.cs
- GridItemCollection.cs
- ArgumentOutOfRangeException.cs
- Guid.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- ToolStripOverflow.cs
- HtmlAnchor.cs
- MultiView.cs
- FileDialogCustomPlace.cs
- FormClosedEvent.cs
- MD5CryptoServiceProvider.cs
- DaylightTime.cs
- VisualStateManager.cs
- FormsAuthenticationEventArgs.cs
- FixedBufferAttribute.cs
- XmlSerializationGeneratedCode.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- BaseUriHelper.cs
- SqlTriggerAttribute.cs
- CqlParser.cs