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
- ControlPager.cs
- WorkflowDesigner.cs
- PrintingPermission.cs
- MonthCalendar.cs
- XsdValidatingReader.cs
- BamlRecordHelper.cs
- WindowHideOrCloseTracker.cs
- PageSetupDialog.cs
- WebException.cs
- ContainerUIElement3D.cs
- FormatPage.cs
- safesecurityhelperavalon.cs
- ExtensionSurface.cs
- UnsafeNativeMethods.cs
- GlyphRunDrawing.cs
- VirtualizingPanel.cs
- Shape.cs
- EndpointReference.cs
- CompiledRegexRunner.cs
- SqlNamer.cs
- DataGridItemAutomationPeer.cs
- ValueTypeFieldReference.cs
- WebUtil.cs
- CalloutQueueItem.cs
- ParameterCollection.cs
- DataListItemEventArgs.cs
- SslStream.cs
- SecondaryViewProvider.cs
- WebPartCatalogCloseVerb.cs
- ConversionHelper.cs
- DirectoryObjectSecurity.cs
- SourceChangedEventArgs.cs
- TableRowCollection.cs
- LinqMaximalSubtreeNominator.cs
- DtdParser.cs
- MimeTypeMapper.cs
- CellParagraph.cs
- CodeTypeMemberCollection.cs
- PenThread.cs
- SQLChars.cs
- DbConnectionOptions.cs
- DecimalConverter.cs
- SqlBulkCopyColumnMapping.cs
- HMACMD5.cs
- InheritablePropertyChangeInfo.cs
- PersonalizableAttribute.cs
- EventTrigger.cs
- _AcceptOverlappedAsyncResult.cs
- ExpressionSelection.cs
- ShaderEffect.cs
- HiddenFieldPageStatePersister.cs
- TimersDescriptionAttribute.cs
- KeyedCollection.cs
- TextEndOfParagraph.cs
- OracleRowUpdatedEventArgs.cs
- FontWeight.cs
- SwitchLevelAttribute.cs
- ActivityExecutorSurrogate.cs
- SessionIDManager.cs
- Html32TextWriter.cs
- XamlFrame.cs
- Color.cs
- ScrollItemPattern.cs
- TextTreeTextBlock.cs
- FileDialog_Vista_Interop.cs
- CompiledIdentityConstraint.cs
- AssemblyHelper.cs
- ThousandthOfEmRealPoints.cs
- SubclassTypeValidator.cs
- SoapIncludeAttribute.cs
- PackageRelationship.cs
- AdPostCacheSubstitution.cs
- InternalCache.cs
- GridViewRowCollection.cs
- Roles.cs
- ElementHost.cs
- QualificationDataItem.cs
- CodeExpressionCollection.cs
- DataTableMapping.cs
- Material.cs
- RelatedImageListAttribute.cs
- LoadGrammarCompletedEventArgs.cs
- XamlGridLengthSerializer.cs
- ModelFunction.cs
- EventMetadata.cs
- DbProviderFactoriesConfigurationHandler.cs
- FontUnitConverter.cs
- XsdBuilder.cs
- FixedSOMTableCell.cs
- ADConnectionHelper.cs
- AstTree.cs
- ValidationHelper.cs
- KnownColorTable.cs
- ThousandthOfEmRealDoubles.cs
- InternalsVisibleToAttribute.cs
- SystemDiagnosticsSection.cs
- TypeUnloadedException.cs
- DataKey.cs
- DataGridViewComboBoxEditingControl.cs
- MetadataFile.cs