Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Dispatcher / SharedRuntimeState.cs / 1 / SharedRuntimeState.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Dispatcher
{
using System;
class SharedRuntimeState
{
bool isImmutable;
bool enableFaults = true;
bool isOnServer;
bool manualAddressing;
bool validateMustUnderstand = true;
internal SharedRuntimeState(bool isOnServer)
{
this.isOnServer = isOnServer;
}
internal bool EnableFaults
{
get { return this.enableFaults; }
set { this.enableFaults = value; }
}
internal bool IsOnServer
{
get { return this.isOnServer; }
}
internal bool ManualAddressing
{
get { return this.manualAddressing; }
set { this.manualAddressing = value; }
}
internal bool ValidateMustUnderstand
{
get { return this.validateMustUnderstand; }
set { this.validateMustUnderstand = value; }
}
internal void LockDownProperties()
{
this.isImmutable = true;
}
internal void ThrowIfImmutable()
{
if (this.isImmutable)
{
if (this.IsOnServer)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxImmutableServiceHostBehavior0)));
}
else
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.SFxImmutableChannelFactoryBehavior0)));
}
}
}
}
}
// 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
- PermissionSetTriple.cs
- WeakReferenceKey.cs
- SessionStateSection.cs
- xamlnodes.cs
- DataControlFieldCell.cs
- IdnElement.cs
- ApplicationSecurityManager.cs
- PageOutputQuality.cs
- MissingFieldException.cs
- DrawListViewColumnHeaderEventArgs.cs
- ObjectReferenceStack.cs
- HttpContext.cs
- CodeAttributeArgumentCollection.cs
- HashRepartitionEnumerator.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- ControlsConfig.cs
- GeneralTransform3D.cs
- CustomExpressionEventArgs.cs
- DataGridViewCellValidatingEventArgs.cs
- Cast.cs
- TrustManager.cs
- ConditionChanges.cs
- DataGrid.cs
- LifetimeServices.cs
- UIAgentRequest.cs
- SiteMapNodeItem.cs
- SqlParameterCollection.cs
- hwndwrapper.cs
- SurrogateSelector.cs
- NullableBoolConverter.cs
- InkSerializer.cs
- HttpClientProtocol.cs
- SystemFonts.cs
- AbstractDataSvcMapFileLoader.cs
- DbConnectionClosed.cs
- SharedStatics.cs
- AssemblyUtil.cs
- StyleSheet.cs
- FileLoadException.cs
- WebCategoryAttribute.cs
- QilValidationVisitor.cs
- TraceHwndHost.cs
- Decimal.cs
- pingexception.cs
- DispatcherHookEventArgs.cs
- RsaKeyIdentifierClause.cs
- NumberSubstitution.cs
- metadatamappinghashervisitor.cs
- MDIClient.cs
- KeyTime.cs
- DataGridCommandEventArgs.cs
- BaseCAMarshaler.cs
- StyleHelper.cs
- DataGridRow.cs
- Point3DIndependentAnimationStorage.cs
- TransformerConfigurationWizardBase.cs
- OptimizedTemplateContent.cs
- RowsCopiedEventArgs.cs
- StatusBarItemAutomationPeer.cs
- CatalogZone.cs
- ExtendedPropertyDescriptor.cs
- EventlogProvider.cs
- DisplayNameAttribute.cs
- ManagementNamedValueCollection.cs
- SqlUserDefinedAggregateAttribute.cs
- DataPager.cs
- Win32Exception.cs
- OpacityConverter.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- CodeArrayCreateExpression.cs
- CodePropertyReferenceExpression.cs
- DocumentSequenceHighlightLayer.cs
- ClientScriptManagerWrapper.cs
- ChineseLunisolarCalendar.cs
- RectAnimation.cs
- CodeAccessPermission.cs
- _HTTPDateParse.cs
- GZipStream.cs
- DataGridViewAccessibleObject.cs
- ApplicationContext.cs
- KeyEventArgs.cs
- ValidatorCompatibilityHelper.cs
- OleDbSchemaGuid.cs
- RepeaterItemCollection.cs
- SeverityFilter.cs
- BuilderElements.cs
- ValidationErrorEventArgs.cs
- SingleAnimationUsingKeyFrames.cs
- ChineseLunisolarCalendar.cs
- LiteralControl.cs
- CustomErrorsSectionWrapper.cs
- ScriptResourceInfo.cs
- PropertyGroupDescription.cs
- SelectionRangeConverter.cs
- ActivityDesignerAccessibleObject.cs
- SqlDataSourceStatusEventArgs.cs
- ValidationVisibilityAttribute.cs
- SubMenuStyleCollection.cs
- SqlUnionizer.cs
- PrintPreviewGraphics.cs