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
- HeaderElement.cs
- SQLBinary.cs
- ListViewInsertedEventArgs.cs
- BadImageFormatException.cs
- ColumnReorderedEventArgs.cs
- ContentFilePart.cs
- XmlSchemaSet.cs
- GcHandle.cs
- IndexedGlyphRun.cs
- ClientConfigurationSystem.cs
- KeySpline.cs
- HwndHostAutomationPeer.cs
- EntityViewGenerator.cs
- Source.cs
- ConditionChanges.cs
- _BasicClient.cs
- ValidationPropertyAttribute.cs
- DefaultProxySection.cs
- BinaryObjectReader.cs
- InternalBase.cs
- COM2TypeInfoProcessor.cs
- NetworkInformationException.cs
- RegionInfo.cs
- FormViewPageEventArgs.cs
- XPathAxisIterator.cs
- XmlSerializer.cs
- SafeEventLogWriteHandle.cs
- FileCodeGroup.cs
- SecurityContext.cs
- ArgumentNullException.cs
- IriParsingElement.cs
- SessionPageStatePersister.cs
- ClassHandlersStore.cs
- ByteAnimationBase.cs
- TextModifierScope.cs
- TemplateBuilder.cs
- TableLayoutPanelCellPosition.cs
- SymbolEqualComparer.cs
- KerberosSecurityTokenAuthenticator.cs
- BaseTemplateBuildProvider.cs
- IOException.cs
- CachedFontFace.cs
- Switch.cs
- LinearGradientBrush.cs
- SqlAliasesReferenced.cs
- UIntPtr.cs
- Point4D.cs
- FacetDescriptionElement.cs
- TextElementEnumerator.cs
- ComponentChangingEvent.cs
- ImageMap.cs
- XmlProcessingInstruction.cs
- SqlDataSourceEnumerator.cs
- HandlerFactoryCache.cs
- WebPartZoneBaseDesigner.cs
- IsolatedStorageFilePermission.cs
- FieldNameLookup.cs
- DataService.cs
- SequentialOutput.cs
- XamlWriter.cs
- cookiecollection.cs
- TextRunCache.cs
- XmlNodeChangedEventManager.cs
- CopyNamespacesAction.cs
- PlaceHolder.cs
- RepeaterItemEventArgs.cs
- OpCodes.cs
- GorillaCodec.cs
- XmlLinkedNode.cs
- EventsTab.cs
- EnumerableCollectionView.cs
- basecomparevalidator.cs
- ValidatingPropertiesEventArgs.cs
- TreeNodeClickEventArgs.cs
- HtmlInputImage.cs
- DataRelation.cs
- MailBnfHelper.cs
- ChannelSettingsElement.cs
- ControlAdapter.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- SQLMembershipProvider.cs
- AttachmentService.cs
- ClientApiGenerator.cs
- Content.cs
- HtmlElementEventArgs.cs
- SignatureDescription.cs
- InternalUserCancelledException.cs
- PrinterSettings.cs
- ArgumentException.cs
- PartialTrustVisibleAssembly.cs
- DummyDataSource.cs
- AuthenticationModuleElement.cs
- TracingConnection.cs
- TableLayoutSettingsTypeConverter.cs
- ValidationErrorCollection.cs
- EventSinkHelperWriter.cs
- BitmapEffectDrawingContextState.cs
- Int32CAMarshaler.cs
- EFDataModelProvider.cs
- TabItemAutomationPeer.cs