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
- WebService.cs
- DataGridViewRowsAddedEventArgs.cs
- Matrix3DConverter.cs
- odbcmetadatacolumnnames.cs
- AdapterUtil.cs
- PreviewPageInfo.cs
- _HTTPDateParse.cs
- DataGridViewBand.cs
- WindowsPrincipal.cs
- CachedBitmap.cs
- DataRecordInfo.cs
- RichTextBoxContextMenu.cs
- TextTreePropertyUndoUnit.cs
- TemplateLookupAction.cs
- ViewGenResults.cs
- ServiceNotStartedException.cs
- OrderedHashRepartitionEnumerator.cs
- UIElementPropertyUndoUnit.cs
- EntitySetBaseCollection.cs
- EntityDataReader.cs
- ChangeDirector.cs
- TypeSystem.cs
- ImageSourceConverter.cs
- SelectionEditor.cs
- BitmapVisualManager.cs
- TabControlCancelEvent.cs
- MouseButtonEventArgs.cs
- CompModSwitches.cs
- ButtonPopupAdapter.cs
- ReferentialConstraint.cs
- XmlSchemaSimpleTypeList.cs
- Serializer.cs
- XmlWrappingReader.cs
- TextWriterTraceListener.cs
- RSAProtectedConfigurationProvider.cs
- DataSetUtil.cs
- ValidationHelper.cs
- UnhandledExceptionEventArgs.cs
- OleDbTransaction.cs
- lengthconverter.cs
- XhtmlBasicObjectListAdapter.cs
- CodeParameterDeclarationExpression.cs
- OutputCacheSettings.cs
- ReflectTypeDescriptionProvider.cs
- TextTreeDeleteContentUndoUnit.cs
- TrustManagerPromptUI.cs
- CustomErrorsSection.cs
- FrameworkContextData.cs
- XmlIgnoreAttribute.cs
- BinaryMessageEncodingBindingElement.cs
- SmtpFailedRecipientException.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- RangeBaseAutomationPeer.cs
- TextEditorTables.cs
- AsyncOperationManager.cs
- PeerTransportListenAddressConverter.cs
- HostProtectionException.cs
- MetadataUtilsSmi.cs
- ProgramPublisher.cs
- WhitespaceRule.cs
- DataGridViewColumnCollection.cs
- FormatConvertedBitmap.cs
- DataGridLength.cs
- ModelItemKeyValuePair.cs
- XmlObjectSerializerWriteContext.cs
- AlternateView.cs
- COAUTHINFO.cs
- SQLInt16.cs
- Rotation3DKeyFrameCollection.cs
- DetailsViewRowCollection.cs
- CommonEndpointBehaviorElement.cs
- RoutedEventValueSerializer.cs
- Padding.cs
- TypeValidationEventArgs.cs
- TheQuery.cs
- RC2.cs
- DataServiceQueryException.cs
- ImageClickEventArgs.cs
- AlternateView.cs
- GenericXmlSecurityToken.cs
- WindowPatternIdentifiers.cs
- JsonReader.cs
- ReadOnlyMetadataCollection.cs
- WizardDesigner.cs
- LoadRetryStrategyFactory.cs
- PropertyBuilder.cs
- ObjectDataSourceFilteringEventArgs.cs
- WebBrowserHelper.cs
- WebDescriptionAttribute.cs
- Empty.cs
- ViewStateChangedEventArgs.cs
- HostProtectionException.cs
- ControlAdapter.cs
- EntityDataSourceReferenceGroup.cs
- CachedFontFamily.cs
- EntityProviderServices.cs
- ReceiveActivityValidator.cs
- ToolStripOverflow.cs
- XmlBuffer.cs
- Graphics.cs