Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / ReliableSession.cs / 1 / ReliableSession.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel { using System.ServiceModel.Channels; // The only purpose in life for these classes is so that, on standard bindings, you can say // binding.ReliableSession.Ordered // binding.ReliableSession.InactivityTimeout // binding.ReliableSession.Enabled // where these properties are "bucketized" all under .ReliableSession, which makes them easier to // discover/Intellisense public class ReliableSession { ReliableSessionBindingElement element; public ReliableSession(ReliableSessionBindingElement reliableSessionBindingElement) { if (reliableSessionBindingElement == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("reliableSessionBindingElement"); this.element = reliableSessionBindingElement; } public bool Ordered { get { return this.element.Ordered; } set { this.element.Ordered = value; } } public TimeSpan InactivityTimeout { get { return this.element.InactivityTimeout; } set { if (value <= TimeSpan.Zero) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SR.GetString(SR.ValueMustBePositive))); this.element.InactivityTimeout = value; } } } public class OptionalReliableSession : ReliableSession { bool enabled; public OptionalReliableSession(ReliableSessionBindingElement reliableSessionBindingElement) : base(reliableSessionBindingElement) { } public bool Enabled { get { return this.enabled; } set { this.enabled = value; } } } } // 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
- ScriptControl.cs
- OperationContractGenerationContext.cs
- Profiler.cs
- BuildManager.cs
- ScaleTransform3D.cs
- arclist.cs
- DictionaryGlobals.cs
- BitmapDecoder.cs
- CodeAttachEventStatement.cs
- initElementDictionary.cs
- ConstructorBuilder.cs
- recordstatefactory.cs
- Queue.cs
- LocalizationParserHooks.cs
- RegexMatchCollection.cs
- GridViewCommandEventArgs.cs
- ListControlConvertEventArgs.cs
- DbParameterHelper.cs
- UserControl.cs
- XhtmlTextWriter.cs
- DoubleAnimationBase.cs
- ISO2022Encoding.cs
- DataColumn.cs
- SoapAttributeAttribute.cs
- WebPermission.cs
- ObjectConverter.cs
- RegisteredExpandoAttribute.cs
- DataListItemCollection.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- SharedStatics.cs
- CapabilitiesAssignment.cs
- ByValueEqualityComparer.cs
- CodeIdentifier.cs
- SymmetricAlgorithm.cs
- Emitter.cs
- CompilationUtil.cs
- MessageSecurityOverTcp.cs
- EntityDescriptor.cs
- ToolboxBitmapAttribute.cs
- NativeMethods.cs
- OperandQuery.cs
- SettingsPropertyNotFoundException.cs
- DoubleLinkList.cs
- ListViewDataItem.cs
- SqlFactory.cs
- SynchronizationHandlesCodeDomSerializer.cs
- EditCommandColumn.cs
- GZipStream.cs
- HostingEnvironmentException.cs
- basenumberconverter.cs
- AssemblyBuilder.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- BindingNavigator.cs
- OutputScopeManager.cs
- ImportedPolicyConversionContext.cs
- ObjectAssociationEndMapping.cs
- HttpModuleCollection.cs
- ReverseInheritProperty.cs
- ExecutedRoutedEventArgs.cs
- ControlValuePropertyAttribute.cs
- QilBinary.cs
- Int16.cs
- XPathAxisIterator.cs
- TableChangeProcessor.cs
- Parsers.cs
- ApplicationInfo.cs
- PasswordTextNavigator.cs
- Convert.cs
- TraceLevelStore.cs
- coordinatorfactory.cs
- TaiwanCalendar.cs
- ListViewItem.cs
- MessageHeaderDescription.cs
- SQLCharsStorage.cs
- ItemCollectionEditor.cs
- ImplicitInputBrush.cs
- UInt32.cs
- ECDiffieHellmanCng.cs
- Table.cs
- FixedTextContainer.cs
- recordstate.cs
- ToolboxCategoryItems.cs
- ObjectKeyFrameCollection.cs
- SelectionPattern.cs
- XmlSignificantWhitespace.cs
- InternalEnumValidator.cs
- Grid.cs
- ObjectDataSourceStatusEventArgs.cs
- panel.cs
- InfoCardSymmetricAlgorithm.cs
- RadioButtonList.cs
- KoreanCalendar.cs
- XsdBuildProvider.cs
- MetadataArtifactLoader.cs
- SoapIgnoreAttribute.cs
- PackageRelationshipCollection.cs
- AppSettingsExpressionBuilder.cs
- ImageAutomationPeer.cs
- RegexRunnerFactory.cs
- FontSizeConverter.cs