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
- MetadataFile.cs
- InvokePattern.cs
- Vertex.cs
- Compiler.cs
- CustomTrackingQuery.cs
- FormatSettings.cs
- HMACSHA512.cs
- PropVariant.cs
- HtmlInputHidden.cs
- DependencyProperty.cs
- AdapterUtil.cs
- WebControlAdapter.cs
- InlinedLocationReference.cs
- XmlTextReaderImpl.cs
- EntityDataSourceChangingEventArgs.cs
- SqlVersion.cs
- SiteMapNode.cs
- Point3DAnimation.cs
- FileFormatException.cs
- CodeAttributeArgument.cs
- OSEnvironmentHelper.cs
- EmbeddedMailObjectsCollection.cs
- DrawingGroup.cs
- DataViewListener.cs
- MissingMemberException.cs
- WindowsFormsSynchronizationContext.cs
- Util.cs
- IntSecurity.cs
- MediaElementAutomationPeer.cs
- DataGridViewCellConverter.cs
- SqlDependencyListener.cs
- TableLayoutSettingsTypeConverter.cs
- DataTableCollection.cs
- storepermission.cs
- ChameleonKey.cs
- MulticastDelegate.cs
- ExecutionContext.cs
- EnglishPluralizationService.cs
- HwndHost.cs
- ACL.cs
- WindowsBrush.cs
- ConstraintConverter.cs
- DBConnection.cs
- UIElement3DAutomationPeer.cs
- ArgumentException.cs
- StringCollectionMarkupSerializer.cs
- WebBrowserUriTypeConverter.cs
- PropertyEmitterBase.cs
- RenderOptions.cs
- MethodRental.cs
- XmlSchemaGroup.cs
- SizeAnimation.cs
- RandomNumberGenerator.cs
- ExpressionPrefixAttribute.cs
- ParseNumbers.cs
- AttributedMetaModel.cs
- Type.cs
- XpsStructure.cs
- Literal.cs
- SelectionProcessor.cs
- _CommandStream.cs
- JoinCqlBlock.cs
- DirectoryInfo.cs
- SamlSerializer.cs
- SpeechSeg.cs
- BufferModesCollection.cs
- ValidationService.cs
- IntSecurity.cs
- ContextMenuAutomationPeer.cs
- NameNode.cs
- Connector.xaml.cs
- mediaeventargs.cs
- ElapsedEventArgs.cs
- ByteRangeDownloader.cs
- DefaultWorkflowSchedulerService.cs
- MetafileHeader.cs
- ZipFileInfoCollection.cs
- GetKeyedHashRequest.cs
- GroupAggregateExpr.cs
- StatusBarItemAutomationPeer.cs
- BuilderElements.cs
- HtmlControl.cs
- ObjectStateManager.cs
- WindowsGraphicsWrapper.cs
- HtmlLink.cs
- RuntimeResourceSet.cs
- ControlAdapter.cs
- Ref.cs
- PageParser.cs
- SelectionWordBreaker.cs
- GeneralTransform.cs
- PermissionAttributes.cs
- ColorConverter.cs
- LocalValueEnumerator.cs
- XmlBinaryReader.cs
- DataControlCommands.cs
- DerivedKeySecurityToken.cs
- LocatorPart.cs
- SqlTriggerContext.cs
- Profiler.cs