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
- MultiTouchSystemGestureLogic.cs
- TitleStyle.cs
- PageClientProxyGenerator.cs
- FigureParaClient.cs
- XmlArrayAttribute.cs
- SessionEndingEventArgs.cs
- FloaterBaseParagraph.cs
- InputLanguageCollection.cs
- SubqueryTrackingVisitor.cs
- GridViewRow.cs
- GenericPrincipal.cs
- DurableDispatcherAddressingFault.cs
- SerializationObjectManager.cs
- WindowsRebar.cs
- XDRSchema.cs
- GlobalItem.cs
- ValueTypeFixupInfo.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- DataReaderContainer.cs
- Registry.cs
- QueryOpeningEnumerator.cs
- AssociationProvider.cs
- XslTransform.cs
- DesignerWebPartChrome.cs
- ObjectViewQueryResultData.cs
- SQLString.cs
- MsmqVerifier.cs
- ClientProxyGenerator.cs
- Schema.cs
- SecurityToken.cs
- IndependentlyAnimatedPropertyMetadata.cs
- LocalizeDesigner.cs
- IgnoreFileBuildProvider.cs
- TextElementEnumerator.cs
- SamlAuthenticationClaimResource.cs
- DependencyPropertyChangedEventArgs.cs
- Solver.cs
- Bind.cs
- MenuStrip.cs
- XmlSchemaValidator.cs
- ConnectionStringSettingsCollection.cs
- ComponentEditorForm.cs
- Utils.cs
- FlowLayoutSettings.cs
- ConfigXmlWhitespace.cs
- PageParserFilter.cs
- CellLabel.cs
- XmlSchemaProviderAttribute.cs
- TextProperties.cs
- ServiceModelConfiguration.cs
- OracleDataReader.cs
- ContentTypeSettingClientMessageFormatter.cs
- ExpressionPrefixAttribute.cs
- SqlCacheDependencySection.cs
- HtmlTableRow.cs
- WSMessageEncoding.cs
- SourceElementsCollection.cs
- PathSegmentCollection.cs
- ColorConvertedBitmap.cs
- WindowsFont.cs
- FileInfo.cs
- XmlFormatReaderGenerator.cs
- StopStoryboard.cs
- CacheForPrimitiveTypes.cs
- LayoutUtils.cs
- IISMapPath.cs
- LeaseManager.cs
- ListBox.cs
- XmlUrlResolver.cs
- PropertyValueChangedEvent.cs
- CellParagraph.cs
- Size.cs
- LogPolicy.cs
- SoapSchemaMember.cs
- ZoneIdentityPermission.cs
- ZipPackage.cs
- AttributeCollection.cs
- ProcessThreadDesigner.cs
- WebControlAdapter.cs
- FolderBrowserDialog.cs
- Argument.cs
- AspProxy.cs
- BinaryParser.cs
- TableLayoutStyle.cs
- SqlDataSourceAdvancedOptionsForm.cs
- MatrixKeyFrameCollection.cs
- SoapIgnoreAttribute.cs
- ComponentChangingEvent.cs
- MimeFormReflector.cs
- MultiBinding.cs
- ChangeDirector.cs
- RequestBringIntoViewEventArgs.cs
- ArraySortHelper.cs
- BufferedConnection.cs
- AnchoredBlock.cs
- IconBitmapDecoder.cs
- DatagridviewDisplayedBandsData.cs
- PaintEvent.cs
- FixedSOMTableCell.cs
- Event.cs