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
- InputProviderSite.cs
- UriSchemeKeyedCollection.cs
- DictionaryChange.cs
- PrinterSettings.cs
- TreeNodeSelectionProcessor.cs
- ByteAnimation.cs
- Compensate.cs
- COM2ColorConverter.cs
- XmlNamespaceMapping.cs
- SmtpDigestAuthenticationModule.cs
- ResourcePermissionBase.cs
- MembershipValidatePasswordEventArgs.cs
- PixelShader.cs
- DocumentViewerBaseAutomationPeer.cs
- Timer.cs
- AnnotationMap.cs
- XmlQualifiedNameTest.cs
- TileBrush.cs
- DeclaredTypeValidatorAttribute.cs
- RowBinding.cs
- PointHitTestParameters.cs
- EditorZoneBase.cs
- ConfigurationValidatorAttribute.cs
- AsyncStreamReader.cs
- CqlParserHelpers.cs
- TypeSystem.cs
- SafeNativeMethodsMilCoreApi.cs
- JsonEnumDataContract.cs
- BooleanFacetDescriptionElement.cs
- XNodeSchemaApplier.cs
- RectAnimationUsingKeyFrames.cs
- SoapInteropTypes.cs
- UsernameTokenFactoryCredential.cs
- IntegerValidatorAttribute.cs
- StorageBasedPackageProperties.cs
- RequestCacheManager.cs
- SafeFileMapViewHandle.cs
- WebZone.cs
- XmlFormatWriterGenerator.cs
- HwndAppCommandInputProvider.cs
- CallbackException.cs
- GroupItem.cs
- VersionConverter.cs
- _HTTPDateParse.cs
- NativeMethods.cs
- OleDbRowUpdatedEvent.cs
- SpellerError.cs
- HttpEncoderUtility.cs
- FormViewUpdatedEventArgs.cs
- ObjectView.cs
- QueueNameHelper.cs
- NameObjectCollectionBase.cs
- ValuePattern.cs
- PtsContext.cs
- ToolStripDropDownItem.cs
- VideoDrawing.cs
- AssemblyBuilder.cs
- RequestCacheManager.cs
- CodeNamespaceImport.cs
- ReadOnlyHierarchicalDataSourceView.cs
- RequiredAttributeAttribute.cs
- BufferCache.cs
- PackWebRequest.cs
- WriteableBitmap.cs
- InternalTransaction.cs
- ExclusiveNamedPipeTransportManager.cs
- SoapIncludeAttribute.cs
- DoubleLinkListEnumerator.cs
- UIElement3D.cs
- StructureChangedEventArgs.cs
- SByteConverter.cs
- typedescriptorpermission.cs
- LoadedOrUnloadedOperation.cs
- MatrixAnimationUsingKeyFrames.cs
- JournalEntry.cs
- DesignerCalendarAdapter.cs
- BindStream.cs
- SqlWriter.cs
- CategoryAttribute.cs
- Pair.cs
- XDRSchema.cs
- AbstractExpressions.cs
- RegexParser.cs
- RepeaterCommandEventArgs.cs
- TypeUtils.cs
- Expander.cs
- ClipboardData.cs
- TableRowCollection.cs
- FontWeightConverter.cs
- ReservationCollection.cs
- QueryResults.cs
- SchemaElementDecl.cs
- AddingNewEventArgs.cs
- Version.cs
- ContentDesigner.cs
- DataBoundLiteralControl.cs
- JavascriptCallbackMessageInspector.cs
- MaskedTextBoxDesignerActionList.cs
- DataGridViewCellEventArgs.cs
- DBSqlParserColumnCollection.cs