Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Description / ServiceTimeoutsBehavior.cs / 1 / ServiceTimeoutsBehavior.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Description { using System.ServiceModel.Channels; using System.ServiceModel; using System.ServiceModel.Dispatcher; using System.ServiceModel.Diagnostics; using System.Runtime.Serialization; using System.Collections.ObjectModel; using System.Collections.Generic; internal class ServiceTimeoutsBehavior : IServiceBehavior { TimeSpan transactionTimeout = TimeSpan.Zero; internal ServiceTimeoutsBehavior(TimeSpan transactionTimeout) { this.transactionTimeout = transactionTimeout; } internal TimeSpan TransactionTimeout { get { return this.transactionTimeout; } set { if (value < TimeSpan.Zero) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", value, SR.GetString(SR.ValueMustBeNonNegative))); } this.transactionTimeout = value; } } void IServiceBehavior.Validate(ServiceDescription description, ServiceHostBase serviceHostBase) { } void IServiceBehavior.AddBindingParameters(ServiceDescription description, ServiceHostBase serviceHostBase, Collectionendpoints, BindingParameterCollection parameters) { } void IServiceBehavior.ApplyDispatchBehavior(ServiceDescription description, ServiceHostBase serviceHostBase) { if (this.transactionTimeout != TimeSpan.Zero) { for (int i=0; i this.transactionTimeout)) { channelDispatcher.TransactionTimeout = this.transactionTimeout; } } } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OdbcEnvironment.cs
- CompModSwitches.cs
- BindingManagerDataErrorEventArgs.cs
- DelegateInArgument.cs
- ProviderConnectionPointCollection.cs
- OpenTypeCommon.cs
- NoneExcludedImageIndexConverter.cs
- EncryptedData.cs
- ByteKeyFrameCollection.cs
- AppDomainEvidenceFactory.cs
- KeyInterop.cs
- QilReplaceVisitor.cs
- DesignerSerializationVisibilityAttribute.cs
- DataGridCellEditEndingEventArgs.cs
- BasicExpandProvider.cs
- StrokeNodeOperations2.cs
- TypeReference.cs
- HttpCacheVary.cs
- ListenerElementsCollection.cs
- FlowLayoutPanel.cs
- RectangleConverter.cs
- Range.cs
- SignedInfo.cs
- xmlglyphRunInfo.cs
- MasterPageBuildProvider.cs
- ContextMenuService.cs
- DashStyles.cs
- LockedBorderGlyph.cs
- ProviderBase.cs
- StringWriter.cs
- GeometryValueSerializer.cs
- DataObjectMethodAttribute.cs
- PreProcessor.cs
- Point4DConverter.cs
- DiagnosticsElement.cs
- SinglePageViewer.cs
- DesignTimeParseData.cs
- RoutedEventConverter.cs
- COM2TypeInfoProcessor.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- ResumeStoryboard.cs
- BinaryMethodMessage.cs
- Compiler.cs
- DictionaryItemsCollection.cs
- EntityConnectionStringBuilder.cs
- DependencyObjectProvider.cs
- StringComparer.cs
- ExpandableObjectConverter.cs
- Walker.cs
- MachineKeySection.cs
- ProcessProtocolHandler.cs
- HandlerFactoryCache.cs
- NullableConverter.cs
- Visitor.cs
- DataGridViewToolTip.cs
- XmlNodeList.cs
- QuinticEase.cs
- ComponentChangedEvent.cs
- StrokeCollection.cs
- SourceFileBuildProvider.cs
- ClrProviderManifest.cs
- SQLInt32Storage.cs
- Lazy.cs
- WebPartEditVerb.cs
- ClockGroup.cs
- EntityTransaction.cs
- InstancePersistenceContext.cs
- HttpListener.cs
- CodeDomConfigurationHandler.cs
- StartUpEventArgs.cs
- PolyQuadraticBezierSegment.cs
- TableLayoutPanelResizeGlyph.cs
- PtsHost.cs
- CapabilitiesState.cs
- ConcurrentDictionary.cs
- TextBlock.cs
- DataGridToolTip.cs
- DiscoveryUtility.cs
- CommandHelpers.cs
- SchemaElementLookUpTable.cs
- ApplicationDirectoryMembershipCondition.cs
- DataSysAttribute.cs
- TextSpanModifier.cs
- Path.cs
- MenuItemBindingCollection.cs
- FindSimilarActivitiesVerb.cs
- DataGridCell.cs
- SecurityKeyUsage.cs
- FieldBuilder.cs
- TextEditorDragDrop.cs
- TableColumn.cs
- BuildProviderAppliesToAttribute.cs
- MessagePropertyAttribute.cs
- EntityConnectionStringBuilderItem.cs
- UiaCoreApi.cs
- SinglePageViewer.cs
- RoleGroup.cs
- UIElementHelper.cs
- EntityTransaction.cs
- SqlDataSourceQueryEditor.cs