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
- StylusPlugInCollection.cs
- AvTraceDetails.cs
- EntityDataSourceValidationException.cs
- SmiMetaDataProperty.cs
- NetNamedPipeBindingElement.cs
- AsyncOperationManager.cs
- HtmlShimManager.cs
- Quad.cs
- NotConverter.cs
- FontConverter.cs
- URLString.cs
- Sql8ConformanceChecker.cs
- Validator.cs
- QilGenerator.cs
- ApplyHostConfigurationBehavior.cs
- DynamicValidator.cs
- DataGridViewCellValidatingEventArgs.cs
- ApplicationDirectory.cs
- EntityDataSourceContextCreatedEventArgs.cs
- DebuggerService.cs
- SqlVisitor.cs
- HttpServerVarsCollection.cs
- SerializerDescriptor.cs
- shaper.cs
- ObjectViewListener.cs
- ErrorsHelper.cs
- DataContractJsonSerializer.cs
- OpenFileDialog.cs
- SelectionListComponentEditor.cs
- OracleSqlParser.cs
- CompensatableTransactionScopeActivityDesigner.cs
- FlowLayout.cs
- TableLayoutCellPaintEventArgs.cs
- WebServiceFault.cs
- WebPartTransformer.cs
- BulletChrome.cs
- rsa.cs
- PanelStyle.cs
- Pair.cs
- BufferedWebEventProvider.cs
- HScrollBar.cs
- MouseGesture.cs
- InfoCardKeyedHashAlgorithm.cs
- Table.cs
- TypeBuilder.cs
- newinstructionaction.cs
- AtomEntry.cs
- QuaternionAnimationBase.cs
- GridViewColumnHeader.cs
- XsltFunctions.cs
- CustomPopupPlacement.cs
- WebPartDeleteVerb.cs
- DefaultAutoFieldGenerator.cs
- GPStream.cs
- ProviderUtil.cs
- mediaeventargs.cs
- LabelDesigner.cs
- LayeredChannelListener.cs
- ContainerActivationHelper.cs
- PipeStream.cs
- BroadcastEventHelper.cs
- HashSetDebugView.cs
- BooleanFacetDescriptionElement.cs
- ConfigurationSectionGroup.cs
- Crc32.cs
- _SslState.cs
- XmlnsCache.cs
- Propagator.Evaluator.cs
- JpegBitmapDecoder.cs
- PathTooLongException.cs
- UrlMappingsSection.cs
- XmlQueryStaticData.cs
- BaseDataBoundControl.cs
- BooleanAnimationUsingKeyFrames.cs
- HtmlEncodedRawTextWriter.cs
- HttpGetProtocolReflector.cs
- DBParameter.cs
- ListViewCancelEventArgs.cs
- ShapeTypeface.cs
- GridViewColumnCollectionChangedEventArgs.cs
- SelectorItemAutomationPeer.cs
- MD5CryptoServiceProvider.cs
- RawStylusInputCustomDataList.cs
- Form.cs
- TypedColumnHandler.cs
- ConvertersCollection.cs
- CommonDialog.cs
- ClaimTypeRequirement.cs
- EntryPointNotFoundException.cs
- XmlDataLoader.cs
- DataGridViewUtilities.cs
- StyleTypedPropertyAttribute.cs
- TemplatedWizardStep.cs
- SolidBrush.cs
- InputProcessorProfilesLoader.cs
- TcpAppDomainProtocolHandler.cs
- HttpListenerRequest.cs
- FormViewDesigner.cs
- DataConnectionHelper.cs
- TableLayoutSettingsTypeConverter.cs