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
- ServiceDebugBehavior.cs
- TranslateTransform.cs
- GifBitmapDecoder.cs
- X509Certificate.cs
- SolidColorBrush.cs
- ConstraintEnumerator.cs
- XmlTextReaderImplHelpers.cs
- SafeBitVector32.cs
- ToolStripArrowRenderEventArgs.cs
- SafeReadContext.cs
- EncoderReplacementFallback.cs
- XamlClipboardData.cs
- NoClickablePointException.cs
- FrameworkContentElement.cs
- SystemInformation.cs
- ModuleBuilder.cs
- TypeElementCollection.cs
- PerCallInstanceContextProvider.cs
- ObjectConverter.cs
- _SecureChannel.cs
- GenericAuthenticationEventArgs.cs
- ProgressBar.cs
- Attributes.cs
- DesignerAutoFormat.cs
- ZoomPercentageConverter.cs
- AsymmetricAlgorithm.cs
- FunctionImportElement.cs
- ConversionContext.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- FactoryGenerator.cs
- SubMenuStyle.cs
- Cell.cs
- BulletedListEventArgs.cs
- SuppressMergeCheckAttribute.cs
- Item.cs
- InternalSafeNativeMethods.cs
- ServicesUtilities.cs
- InvokeMethodActivity.cs
- CompilerScopeManager.cs
- BasicAsyncResult.cs
- SelectionChangedEventArgs.cs
- ZipIOLocalFileBlock.cs
- WebPartEditorApplyVerb.cs
- InstanceStoreQueryResult.cs
- ScrollBar.cs
- SiblingIterators.cs
- WindowsFormsSectionHandler.cs
- ListenerConfig.cs
- ColorMap.cs
- ObjectNavigationPropertyMapping.cs
- DoubleCollection.cs
- BamlReader.cs
- regiisutil.cs
- MethodInfo.cs
- WindowPattern.cs
- DbgUtil.cs
- Menu.cs
- HttpClientChannel.cs
- JavaScriptString.cs
- Vector3DCollection.cs
- ConfigurationElementProperty.cs
- XmlUtil.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- QueryExtender.cs
- WhitespaceReader.cs
- WebServiceClientProxyGenerator.cs
- WeakKeyDictionary.cs
- TextElementCollection.cs
- X509Certificate2Collection.cs
- MethodCallConverter.cs
- ModuleElement.cs
- UnsafeNativeMethods.cs
- SecurityKeyIdentifier.cs
- HScrollBar.cs
- ObjectCloneHelper.cs
- ManipulationStartedEventArgs.cs
- PackWebRequestFactory.cs
- SecurityTokenTypes.cs
- Int64.cs
- DesignerFrame.cs
- XmlDocumentFragment.cs
- QueryAccessibilityHelpEvent.cs
- FolderLevelBuildProvider.cs
- GrammarBuilderRuleRef.cs
- ComplexTypeEmitter.cs
- CodeLabeledStatement.cs
- ReferencedCollectionType.cs
- SafeCryptHandles.cs
- XamlStream.cs
- SubpageParagraph.cs
- XmlCharCheckingReader.cs
- TraceLevelStore.cs
- SqlFacetAttribute.cs
- XmlQuerySequence.cs
- _StreamFramer.cs
- PixelFormats.cs
- Clipboard.cs
- SignedInfo.cs
- Util.cs
- DataGridPageChangedEventArgs.cs