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
- SmtpMail.cs
- IImplicitResourceProvider.cs
- RemoteWebConfigurationHostStream.cs
- AutomationIdentifier.cs
- DefaultTextStore.cs
- Assert.cs
- UncommonField.cs
- ExtensionWindow.cs
- CapabilitiesUse.cs
- RequestCachingSection.cs
- Stackframe.cs
- UserControlBuildProvider.cs
- UseAttributeSetsAction.cs
- SecurityHeader.cs
- DataTemplateKey.cs
- ItemMap.cs
- linebase.cs
- ModelServiceImpl.cs
- Glyph.cs
- FilterEventArgs.cs
- MenuItemAutomationPeer.cs
- PageCatalogPart.cs
- DocumentViewerHelper.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ThreadWorkerController.cs
- CollectionChangedEventManager.cs
- SignedPkcs7.cs
- SerializationBinder.cs
- FeatureAttribute.cs
- ZipIOCentralDirectoryBlock.cs
- ImmComposition.cs
- SerializationSectionGroup.cs
- SimpleBitVector32.cs
- GeneralTransformCollection.cs
- ListViewSortEventArgs.cs
- GraphicsState.cs
- LexicalChunk.cs
- SimpleBitVector32.cs
- InvokePatternIdentifiers.cs
- BaseCodeDomTreeGenerator.cs
- WorkflowDataContext.cs
- ActivityDesignerResources.cs
- RemoteWebConfigurationHost.cs
- SQLDateTime.cs
- EntityDataSourceWizardForm.cs
- MailMessageEventArgs.cs
- SafeSecurityHandles.cs
- WinInetCache.cs
- EllipticalNodeOperations.cs
- TextRangeEdit.cs
- SamlAuthorizationDecisionClaimResource.cs
- QueryAccessibilityHelpEvent.cs
- ListViewItem.cs
- AttributeUsageAttribute.cs
- XmlAutoDetectWriter.cs
- DataGridViewRowHeaderCell.cs
- Viewport2DVisual3D.cs
- DocumentAutomationPeer.cs
- ListControl.cs
- Component.cs
- EntityCommandDefinition.cs
- entitydatasourceentitysetnameconverter.cs
- WebScriptMetadataInstanceContextProvider.cs
- PersonalizablePropertyEntry.cs
- SmuggledIUnknown.cs
- CheckBox.cs
- GeneralTransform.cs
- RouteValueExpressionBuilder.cs
- EdmProperty.cs
- DataGridToolTip.cs
- XmlNamespaceDeclarationsAttribute.cs
- XmlComplianceUtil.cs
- SqlTopReducer.cs
- Invariant.cs
- IItemProperties.cs
- BufferModeSettings.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- SqlUDTStorage.cs
- EntityProviderServices.cs
- MenuTracker.cs
- ToolboxBitmapAttribute.cs
- QilGeneratorEnv.cs
- DesignerSerializationOptionsAttribute.cs
- SimpleRecyclingCache.cs
- _BaseOverlappedAsyncResult.cs
- DataPagerFieldCollection.cs
- Int16AnimationUsingKeyFrames.cs
- StreamingContext.cs
- TextDecorationLocationValidation.cs
- ApplicationSecurityInfo.cs
- ObjectDataSourceStatusEventArgs.cs
- QilFunction.cs
- SecureConversationVersion.cs
- TextServicesHost.cs
- UidManager.cs
- WmlLinkAdapter.cs
- ServiceParser.cs
- UrlPath.cs
- ActionFrame.cs
- Line.cs