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
- Condition.cs
- ToolStripDropDownClosedEventArgs.cs
- HorizontalAlignConverter.cs
- NativeBuffer.cs
- DateTimeFormatInfoScanner.cs
- GeometryCombineModeValidation.cs
- PerfCounters.cs
- X509CertificateCollection.cs
- BindingWorker.cs
- AddressAlreadyInUseException.cs
- Sequence.cs
- XmlBinaryReader.cs
- MobileErrorInfo.cs
- ObjectAnimationUsingKeyFrames.cs
- x509store.cs
- WorkflowInstance.cs
- xmlformatgeneratorstatics.cs
- IdentityVerifier.cs
- StylusButtonEventArgs.cs
- CalendarDataBindingHandler.cs
- XPathConvert.cs
- hresults.cs
- Queue.cs
- SqlConnectionPoolProviderInfo.cs
- XmlSchemaSearchPattern.cs
- FixUp.cs
- RelatedEnd.cs
- ApplicationServiceHelper.cs
- QueryOpeningEnumerator.cs
- SqlUtils.cs
- BoundPropertyEntry.cs
- RegionData.cs
- HttpPostedFile.cs
- SetMemberBinder.cs
- AuthenticatedStream.cs
- ViewPort3D.cs
- SelectionEditor.cs
- SafeFileHandle.cs
- HtmlTableCell.cs
- ExpressionVisitor.cs
- ChangeNode.cs
- DefaultBindingPropertyAttribute.cs
- AppDomainShutdownMonitor.cs
- XPathBinder.cs
- NetworkInformationException.cs
- ConfigurationManagerInternalFactory.cs
- webproxy.cs
- XmlSerializer.cs
- MailMessageEventArgs.cs
- __TransparentProxy.cs
- IISUnsafeMethods.cs
- CompilerResults.cs
- GreenMethods.cs
- GeneralEndpointIdentity.cs
- HttpSessionStateWrapper.cs
- PaginationProgressEventArgs.cs
- __ConsoleStream.cs
- ComEventsMethod.cs
- CheckBox.cs
- NavigateEvent.cs
- ContextMenuStripActionList.cs
- HeaderedContentControl.cs
- ServiceModelReg.cs
- ListDataHelper.cs
- TextTreeRootTextBlock.cs
- Types.cs
- LocatorManager.cs
- SignatureConfirmations.cs
- PrimitiveCodeDomSerializer.cs
- ToggleProviderWrapper.cs
- GroupBoxRenderer.cs
- Transform3D.cs
- BatchServiceHost.cs
- ListSortDescription.cs
- Bits.cs
- UniqueEventHelper.cs
- SqlResolver.cs
- DateTimeOffsetConverter.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- WebPartTransformerAttribute.cs
- ValidationResult.cs
- StylusDevice.cs
- AttachmentService.cs
- TextOutput.cs
- PathFigure.cs
- WorkflowMessageEventArgs.cs
- StrokeNodeData.cs
- XmlDocument.cs
- SymLanguageType.cs
- WindowProviderWrapper.cs
- XmlIgnoreAttribute.cs
- AuthenticatedStream.cs
- Visitor.cs
- NonDualMessageSecurityOverHttpElement.cs
- Effect.cs
- querybuilder.cs
- SamlSubjectStatement.cs
- ApplicationManager.cs
- WebBrowserSiteBase.cs
- BaseTemplateCodeDomTreeGenerator.cs