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
- ModifierKeysValueSerializer.cs
- Application.cs
- TextRangeProviderWrapper.cs
- InputQueueChannel.cs
- ImmComposition.cs
- StyleHelper.cs
- ListenerElementsCollection.cs
- ScriptResourceInfo.cs
- Filter.cs
- WindowsGraphics2.cs
- FixedSOMLineCollection.cs
- Brush.cs
- ValidationPropertyAttribute.cs
- EndpointConfigContainer.cs
- ScrollChrome.cs
- UserControlCodeDomTreeGenerator.cs
- CodeParameterDeclarationExpressionCollection.cs
- WebSysDescriptionAttribute.cs
- PackUriHelper.cs
- VisualStyleElement.cs
- UrlMapping.cs
- XslUrlEditor.cs
- CustomAttributeBuilder.cs
- XamlRtfConverter.cs
- SetStateDesigner.cs
- ProcessInfo.cs
- Window.cs
- StringAttributeCollection.cs
- HostingEnvironment.cs
- WindowsScrollBarBits.cs
- BCLDebug.cs
- _DisconnectOverlappedAsyncResult.cs
- MasterPageParser.cs
- HMACSHA512.cs
- NumberFunctions.cs
- LinearKeyFrames.cs
- HostExecutionContextManager.cs
- IntegerValidator.cs
- FixUpCollection.cs
- PerformanceCounterPermission.cs
- HtmlInputReset.cs
- EventSinkActivity.cs
- rsa.cs
- SchemaCollectionPreprocessor.cs
- DefaultEvaluationContext.cs
- XmlSchemaExternal.cs
- _UriTypeConverter.cs
- PageCatalogPart.cs
- StructuralType.cs
- _UriSyntax.cs
- MenuItemBinding.cs
- ControlBuilderAttribute.cs
- HighlightOverlayGlyph.cs
- DesignOnlyAttribute.cs
- ConfigurationSection.cs
- ValidationError.cs
- ThrowHelper.cs
- XmlTextReaderImpl.cs
- SqlDataSourceAdvancedOptionsForm.cs
- SafeBitVector32.cs
- PersonalizationProvider.cs
- PersonalizableTypeEntry.cs
- LinqDataSourceSelectEventArgs.cs
- SQLInt32.cs
- GlyphRunDrawing.cs
- TdsEnums.cs
- ClientOperation.cs
- WorkflowTimerService.cs
- WebHeaderCollection.cs
- CellParaClient.cs
- AlphabeticalEnumConverter.cs
- GridViewCancelEditEventArgs.cs
- GACIdentityPermission.cs
- BitStream.cs
- DtdParser.cs
- RefType.cs
- StylusLogic.cs
- WmlTextViewAdapter.cs
- ImageField.cs
- PTManager.cs
- ModelFactory.cs
- CodeIdentifier.cs
- Cursors.cs
- UnaryNode.cs
- DynamicActivity.cs
- ZoneIdentityPermission.cs
- ScriptResourceAttribute.cs
- PrintPreviewControl.cs
- HttpException.cs
- EditingMode.cs
- SqlStream.cs
- CorrelationInitializer.cs
- DocumentPage.cs
- MenuItem.cs
- DataPager.cs
- DataControlImageButton.cs
- OdbcConnection.cs
- TheQuery.cs
- TableLayout.cs
- HashJoinQueryOperatorEnumerator.cs