Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / PeerResolvers / PeerResolverSettings.cs / 1 / PeerResolverSettings.cs
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------
namespace System.ServiceModel.PeerResolvers
{
using System;
using System.ServiceModel;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Configuration;
using System.Globalization;
using System.Net.Security;
using System.ServiceModel.Configuration;
using System.ServiceModel.Channels;
public class PeerResolverSettings
{
PeerReferralPolicy referralPolicy;
PeerResolverMode mode;
PeerCustomResolverSettings customSettings;
public PeerResolverSettings(){customSettings = new PeerCustomResolverSettings();}
public PeerResolverMode Mode
{
get
{
return mode;
}
set
{
if (!PeerResolverModeHelper.IsDefined(value))
PeerExceptionHelper.ThrowArgument_InvalidResolverMode(value);
mode = value;
}
}
public PeerReferralPolicy ReferralPolicy
{
get { return referralPolicy; }
set
{
if (!PeerReferralPolicyHelper.IsDefined(value))
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidEnumArgumentException("value", (int)value, typeof(PeerReferralPolicy)));
}
referralPolicy = value;
}
}
public PeerCustomResolverSettings Custom
{
get
{
return customSettings;
}
}
}
}
// 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
- VoiceSynthesis.cs
- SourceFileInfo.cs
- ObfuscateAssemblyAttribute.cs
- MarkupObject.cs
- TreeNodeStyleCollection.cs
- DataGridPagerStyle.cs
- Mapping.cs
- DbParameterCollectionHelper.cs
- PagedDataSource.cs
- StreamWriter.cs
- CalendarItem.cs
- TypedMessageConverter.cs
- X509Extension.cs
- ClientFormsAuthenticationCredentials.cs
- TabPage.cs
- PixelFormat.cs
- AttachInfo.cs
- ApplicationServiceManager.cs
- DataFieldCollectionEditor.cs
- TranslateTransform3D.cs
- ExpressionBindingCollection.cs
- DataGridItem.cs
- DecoderNLS.cs
- PrintingPermissionAttribute.cs
- FontUnit.cs
- SspiWrapper.cs
- TransactionBridgeSection.cs
- DesignerTextViewAdapter.cs
- TextUtf8RawTextWriter.cs
- PageHandlerFactory.cs
- BitmapDownload.cs
- DisplayToken.cs
- KnownAssembliesSet.cs
- DataErrorValidationRule.cs
- _CommandStream.cs
- XPathParser.cs
- COAUTHIDENTITY.cs
- DesignTimeParseData.cs
- LinqDataSourceHelper.cs
- DataGridRowHeaderAutomationPeer.cs
- DesignerActionUI.cs
- DBSchemaTable.cs
- TemplateApplicationHelper.cs
- ViewLoader.cs
- TreeBuilder.cs
- PeerMaintainer.cs
- ToolStripDropDownMenu.cs
- AdornerLayer.cs
- Int32Storage.cs
- ConsumerConnectionPointCollection.cs
- IgnoreFlushAndCloseStream.cs
- XmlCharCheckingWriter.cs
- FileSystemInfo.cs
- StrongNamePublicKeyBlob.cs
- ParameterToken.cs
- MethodInfo.cs
- DataServiceQueryContinuation.cs
- PrimitiveType.cs
- CodeFieldReferenceExpression.cs
- SchemaCompiler.cs
- SystemInformation.cs
- StrokeNodeData.cs
- ImageListStreamer.cs
- translator.cs
- MethodBody.cs
- LayoutDump.cs
- StateManagedCollection.cs
- Visual.cs
- ActiveXSite.cs
- Rect.cs
- MethodBody.cs
- ImportOptions.cs
- WebPartVerbCollection.cs
- MenuItemCollectionEditor.cs
- PrimitiveSchema.cs
- DataGridViewCellCollection.cs
- DigitShape.cs
- ItemCheckedEvent.cs
- ImageCodecInfoPrivate.cs
- autovalidator.cs
- Visual3D.cs
- EmptyCollection.cs
- HtmlInputHidden.cs
- ComAdminWrapper.cs
- IdnMapping.cs
- DataGridViewCellConverter.cs
- AvTrace.cs
- DataSet.cs
- ColumnWidthChangedEvent.cs
- BamlResourceDeserializer.cs
- FocusChangedEventArgs.cs
- EdmToObjectNamespaceMap.cs
- DoubleSumAggregationOperator.cs
- FontStretchConverter.cs
- RtType.cs
- LongAverageAggregationOperator.cs
- PropertyStore.cs
- HandleCollector.cs
- Label.cs
- StopStoryboard.cs