Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / ChannelAcceptor.cs / 1 / ChannelAcceptor.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Channels { abstract class ChannelAcceptor: CommunicationObject, IChannelAcceptor where TChannel : class, IChannel { ChannelManagerBase channelManager; protected ChannelAcceptor(ChannelManagerBase channelManager) { this.channelManager = channelManager; } protected ChannelManagerBase ChannelManager { get { return channelManager; } } protected override TimeSpan DefaultCloseTimeout { get { return this.channelManager.InternalCloseTimeout; } } protected override TimeSpan DefaultOpenTimeout { get { return this.channelManager.InternalOpenTimeout; } } public abstract TChannel AcceptChannel(TimeSpan timeout); public abstract IAsyncResult BeginAcceptChannel(TimeSpan timeout, AsyncCallback callback, object state); public abstract TChannel EndAcceptChannel(IAsyncResult result); public abstract bool WaitForChannel(TimeSpan timeout); public abstract IAsyncResult BeginWaitForChannel(TimeSpan timeout, AsyncCallback callback, object state); public abstract bool EndWaitForChannel(IAsyncResult result); protected override void OnAbort() { } protected override IAsyncResult OnBeginClose(TimeSpan timeout, AsyncCallback callback, object state) { return new CompletedAsyncResult(callback, state); } protected override void OnEndClose(IAsyncResult result) { CompletedAsyncResult.End(result); } protected override void OnClose(TimeSpan timeout) { } protected override IAsyncResult OnBeginOpen(TimeSpan timeout, AsyncCallback callback, object state) { return new CompletedAsyncResult(callback, state); } protected override void OnEndOpen(IAsyncResult result) { CompletedAsyncResult.End(result); } protected override void OnOpen(TimeSpan timeout) { } } } // 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
- PropertyGeneratedEventArgs.cs
- PersonalizationStateInfo.cs
- CommandManager.cs
- NetworkInformationException.cs
- SerializationAttributes.cs
- SmtpNetworkElement.cs
- AvTraceDetails.cs
- SelectingProviderEventArgs.cs
- WindowsSpinner.cs
- ContourSegment.cs
- _KerberosClient.cs
- ParallelTimeline.cs
- SortFieldComparer.cs
- ReadWriteControlDesigner.cs
- PreDigestedSignedInfo.cs
- MinimizableAttributeTypeConverter.cs
- MemoryPressure.cs
- GridViewPageEventArgs.cs
- Decorator.cs
- CodeBlockBuilder.cs
- RuntimeArgumentHandle.cs
- WebPartCloseVerb.cs
- HostedTransportConfigurationBase.cs
- SpellerHighlightLayer.cs
- X509Certificate.cs
- ZipIOBlockManager.cs
- CodeAssignStatement.cs
- NameValueCollection.cs
- HTTP_SERVICE_CONFIG_URLACL_KEY.cs
- AssemblyCollection.cs
- ReverseQueryOperator.cs
- PtsCache.cs
- WsatConfiguration.cs
- DataGridViewColumnTypeEditor.cs
- AutomationPropertyInfo.cs
- RIPEMD160.cs
- RayHitTestParameters.cs
- OdbcRowUpdatingEvent.cs
- TreeBuilderBamlTranslator.cs
- Types.cs
- ProcessModule.cs
- DoubleLinkListEnumerator.cs
- panel.cs
- WrapperSecurityCommunicationObject.cs
- HttpWebRequest.cs
- ZipIOLocalFileDataDescriptor.cs
- SvcMapFileLoader.cs
- LoginAutoFormat.cs
- InvalidTimeZoneException.cs
- ExpandableObjectConverter.cs
- PropertyEmitterBase.cs
- Permission.cs
- PipelineModuleStepContainer.cs
- CharAnimationUsingKeyFrames.cs
- StringAttributeCollection.cs
- SHA1CryptoServiceProvider.cs
- VirtualDirectoryMapping.cs
- ChameleonKey.cs
- DataGridHeaderBorder.cs
- CodeDomLocalizationProvider.cs
- EncryptedKeyIdentifierClause.cs
- HashAlgorithm.cs
- FontNameConverter.cs
- EventDescriptor.cs
- SuppressMessageAttribute.cs
- RawUIStateInputReport.cs
- SapiRecoContext.cs
- GraphicsPath.cs
- Filter.cs
- FontStyles.cs
- EntityConnection.cs
- DataServiceQuery.cs
- CLSCompliantAttribute.cs
- CacheOutputQuery.cs
- PermissionAttributes.cs
- ICspAsymmetricAlgorithm.cs
- _ConnectOverlappedAsyncResult.cs
- TailCallAnalyzer.cs
- PenThreadWorker.cs
- TreeViewImageKeyConverter.cs
- InstalledFontCollection.cs
- SqlAliaser.cs
- DispatcherHooks.cs
- SqlBulkCopyColumnMapping.cs
- MessageDecoder.cs
- DmlSqlGenerator.cs
- ContentPresenter.cs
- XamlWriter.cs
- OracleConnectionFactory.cs
- UrlAuthorizationModule.cs
- GroupBoxDesigner.cs
- ScriptingWebServicesSectionGroup.cs
- ObjectQueryExecutionPlan.cs
- NativeMethods.cs
- Utils.cs
- ReleaseInstanceMode.cs
- ListViewDeletedEventArgs.cs
- PointCollectionValueSerializer.cs
- SqlAliaser.cs
- ResourceExpressionBuilder.cs