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
- VScrollProperties.cs
- VisualTransition.cs
- RuntimeConfig.cs
- AggregationMinMaxHelpers.cs
- VectorValueSerializer.cs
- TypeDependencyAttribute.cs
- XsltLoader.cs
- DetailsViewDeletedEventArgs.cs
- XPathDocumentNavigator.cs
- ObjectTypeMapping.cs
- ArraySet.cs
- DataGridPagerStyle.cs
- XPathNodeList.cs
- Menu.cs
- OperationResponse.cs
- Storyboard.cs
- Crc32Helper.cs
- AutomationElementIdentifiers.cs
- MdImport.cs
- Canvas.cs
- ImportException.cs
- RenderData.cs
- CompressedStack.cs
- EventLogWatcher.cs
- WebServiceMethodData.cs
- AspProxy.cs
- MetabaseServerConfig.cs
- LoadItemsEventArgs.cs
- WindowsListViewItemStartMenu.cs
- TypedLocationWrapper.cs
- ToolStripItemImageRenderEventArgs.cs
- XmlSchemaCollection.cs
- SingleBodyParameterMessageFormatter.cs
- DrawToolTipEventArgs.cs
- Icon.cs
- ContextBase.cs
- InputElement.cs
- PageBuildProvider.cs
- QilParameter.cs
- KeysConverter.cs
- NonSerializedAttribute.cs
- MatrixValueSerializer.cs
- Pen.cs
- GridViewItemAutomationPeer.cs
- AttributeUsageAttribute.cs
- DuplicateWaitObjectException.cs
- VisualCollection.cs
- XmlArrayItemAttribute.cs
- DataViewSettingCollection.cs
- BaseUriHelper.cs
- SerialPort.cs
- SamlConditions.cs
- MILUtilities.cs
- UserControlAutomationPeer.cs
- TextRangeEdit.cs
- GAC.cs
- TreeWalker.cs
- RemotingHelper.cs
- ScrollContentPresenter.cs
- TabletDeviceInfo.cs
- SafePEFileHandle.cs
- Crypto.cs
- XmlWellformedWriter.cs
- FixedSOMPageElement.cs
- RoleManagerSection.cs
- BitmapEffectState.cs
- AccessDataSourceView.cs
- ListDependantCardsRequest.cs
- CodeDomSerializer.cs
- DataMemberFieldConverter.cs
- MediaPlayerState.cs
- GroupPartitionExpr.cs
- CompositeScriptReferenceEventArgs.cs
- OleDbPropertySetGuid.cs
- CodeGeneratorAttribute.cs
- SafeFindHandle.cs
- MailSettingsSection.cs
- ExpressionConverter.cs
- QueuedDeliveryRequirementsMode.cs
- ExpressionParser.cs
- GridItemCollection.cs
- EdmComplexPropertyAttribute.cs
- DataContext.cs
- FaultDescriptionCollection.cs
- EventMemberCodeDomSerializer.cs
- SQLInt16Storage.cs
- AssemblyCollection.cs
- OneOfTypeConst.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- CommandID.cs
- AxisAngleRotation3D.cs
- TypefaceMap.cs
- BitVector32.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- Parameter.cs
- TableLayoutColumnStyleCollection.cs
- OperationFormatter.cs
- GlyphRun.cs
- InfiniteIntConverter.cs