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
- _SafeNetHandles.cs
- ToolStripDesignerAvailabilityAttribute.cs
- Normalizer.cs
- CapabilitiesState.cs
- BuilderInfo.cs
- InstanceStoreQueryResult.cs
- SocketPermission.cs
- HttpListenerRequest.cs
- Group.cs
- UriSection.cs
- UnSafeCharBuffer.cs
- MarshalByValueComponent.cs
- SizeLimitedCache.cs
- InertiaRotationBehavior.cs
- PropertyMap.cs
- MouseGestureConverter.cs
- ConfigXmlDocument.cs
- ReaderWriterLock.cs
- MetadataItem.cs
- AppModelKnownContentFactory.cs
- Vector3DValueSerializer.cs
- GreenMethods.cs
- odbcmetadatacollectionnames.cs
- Geometry.cs
- DbModificationClause.cs
- _NtlmClient.cs
- _LocalDataStoreMgr.cs
- XamlTypeMapper.cs
- Drawing.cs
- WindowsPen.cs
- WindowsMenu.cs
- PeerTransportSecuritySettings.cs
- RotateTransform3D.cs
- DispatcherSynchronizationContext.cs
- FormatControl.cs
- EdmSchemaAttribute.cs
- ErrorProvider.cs
- TabRenderer.cs
- SafeNativeMethods.cs
- ToolStripSettings.cs
- IPPacketInformation.cs
- ScrollItemPattern.cs
- NativeMethods.cs
- odbcmetadatacolumnnames.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- CompositionTarget.cs
- ValueType.cs
- NameValueCollection.cs
- AssociatedControlConverter.cs
- TemplateBamlTreeBuilder.cs
- ActivityBindForm.cs
- WebUtil.cs
- EntityDataSourceChangingEventArgs.cs
- HttpListenerRequest.cs
- ListViewGroupItemCollection.cs
- DurableInstancingOptions.cs
- QuerySetOp.cs
- PriorityBindingExpression.cs
- SimpleMailWebEventProvider.cs
- PackageRelationshipCollection.cs
- NativeMethods.cs
- Authorization.cs
- Number.cs
- TraceEventCache.cs
- ConfigurationCollectionAttribute.cs
- SamlSecurityTokenAuthenticator.cs
- MorphHelpers.cs
- newitemfactory.cs
- TemplateField.cs
- QueryOperationResponseOfT.cs
- Schema.cs
- _OSSOCK.cs
- OrderedParallelQuery.cs
- BrushConverter.cs
- ExtenderProvidedPropertyAttribute.cs
- DescendantQuery.cs
- UrlPath.cs
- mansign.cs
- InstanceContextMode.cs
- DataGridViewCellPaintingEventArgs.cs
- ObjectViewFactory.cs
- DataGridItem.cs
- PolyLineSegment.cs
- AlignmentYValidation.cs
- DbDeleteCommandTree.cs
- EntityStoreSchemaGenerator.cs
- MultipartContentParser.cs
- TraceListener.cs
- InstanceHandleReference.cs
- Confirm.cs
- BrowsableAttribute.cs
- CodeDomSerializationProvider.cs
- AdapterUtil.cs
- _ScatterGatherBuffers.cs
- SafeWaitHandle.cs
- CharacterMetricsDictionary.cs
- GridViewUpdatedEventArgs.cs
- _ScatterGatherBuffers.cs
- Line.cs
- GradientBrush.cs