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
- ErrorHandlerModule.cs
- DataGrid.cs
- DataObjectMethodAttribute.cs
- AxisAngleRotation3D.cs
- TemplateColumn.cs
- ToolStripLocationCancelEventArgs.cs
- ToolTip.cs
- ContextStack.cs
- ProfileSettingsCollection.cs
- ControlParser.cs
- CompilerErrorCollection.cs
- EventPropertyMap.cs
- StructuredCompositeActivityDesigner.cs
- Setter.cs
- ControlDesigner.cs
- DayRenderEvent.cs
- DesignerView.cs
- ExpressionPrefixAttribute.cs
- IUnknownConstantAttribute.cs
- XmlSerializer.cs
- RoutedEventHandlerInfo.cs
- SqlConnectionStringBuilder.cs
- EntitySetDataBindingList.cs
- DropDownButton.cs
- DataGridViewCellParsingEventArgs.cs
- ToolZone.cs
- BufferBuilder.cs
- NamespaceDecl.cs
- XmlConverter.cs
- ChannelManager.cs
- sqlinternaltransaction.cs
- FontDriver.cs
- AssemblyBuilder.cs
- GlobalizationSection.cs
- CheckBoxField.cs
- SR.cs
- PageParser.cs
- cache.cs
- AsynchronousChannel.cs
- ProcessHost.cs
- HandlerFactoryCache.cs
- MemberExpression.cs
- EditorZone.cs
- DelegatingConfigHost.cs
- BuildProviderUtils.cs
- SyntaxCheck.cs
- PenContexts.cs
- NativeMethods.cs
- OptimizedTemplateContent.cs
- Crypto.cs
- _ProxyChain.cs
- ReadOnlyAttribute.cs
- ActiveXHost.cs
- WindowsScrollBar.cs
- QueryPageSettingsEventArgs.cs
- FunctionMappingTranslator.cs
- ProtocolsConfigurationEntry.cs
- Graphics.cs
- IWorkflowDebuggerService.cs
- Resources.Designer.cs
- MobileListItemCollection.cs
- HyperLink.cs
- RealProxy.cs
- OneOfConst.cs
- XD.cs
- SiteMembershipCondition.cs
- BaseDataList.cs
- OdbcEnvironment.cs
- PreProcessor.cs
- DragStartedEventArgs.cs
- DateTimeFormatInfo.cs
- TraceSection.cs
- AsyncResult.cs
- RijndaelManagedTransform.cs
- ColumnCollection.cs
- SimplePropertyEntry.cs
- CodeBinaryOperatorExpression.cs
- CryptoKeySecurity.cs
- _ContextAwareResult.cs
- ThreadStaticAttribute.cs
- DoubleConverter.cs
- TrackBarRenderer.cs
- Dynamic.cs
- SafeUserTokenHandle.cs
- FixUp.cs
- CacheRequest.cs
- HttpHeaderCollection.cs
- GridSplitter.cs
- BulletChrome.cs
- StateWorkerRequest.cs
- SettingsProperty.cs
- StateDesignerConnector.cs
- Stopwatch.cs
- diagnosticsswitches.cs
- CryptoHelper.cs
- OutputCacheModule.cs
- XslTransform.cs
- BaseParser.cs
- BackgroundWorker.cs
- XmlUtil.cs