Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Dispatcher / ReplyChannelBinder.cs / 1 / ReplyChannelBinder.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Dispatcher { using System; using System.ServiceModel.Channels; using System.ServiceModel; using System.ServiceModel.Diagnostics; class ReplyChannelBinder : IChannelBinder { IReplyChannel channel; Uri listenUri; internal ReplyChannelBinder(IReplyChannel channel, Uri listenUri) { if (!((channel != null))) { DiagnosticUtility.DebugAssert("ReplyChannelBinder.ReplyChannelBinder: (channel != null)"); throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("channel"); } this.channel = channel; this.listenUri = listenUri; } public IChannel Channel { get { return this.channel; } } public bool HasSession { get { return this.channel is ISessionChannel; } } public Uri ListenUri { get { return this.listenUri; } } public EndpointAddress LocalAddress { get { return this.channel.LocalAddress; } } public EndpointAddress RemoteAddress { get { #pragma warning suppress 56503 // [....], the property is really not implemented, cannot lie, API not public throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException()); } } public void Abort() { this.channel.Abort(); } public void CloseAfterFault(TimeSpan timeout) { this.channel.Close(timeout); } public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) { return this.channel.BeginTryReceiveRequest(timeout, callback, state); } public bool EndTryReceive(IAsyncResult result, out RequestContext requestContext) { return this.channel.EndTryReceiveRequest(result, out requestContext); } public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) { throw TraceUtility.ThrowHelperError(new NotImplementedException(), message); } public void EndSend(IAsyncResult result) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException()); } public void Send(Message message, TimeSpan timeout) { throw TraceUtility.ThrowHelperError(new NotImplementedException(), message); } public IAsyncResult BeginRequest(Message message, TimeSpan timeout, AsyncCallback callback, object state) { throw TraceUtility.ThrowHelperError(new NotImplementedException(), message); } public Message EndRequest(IAsyncResult result) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException()); } public bool TryReceive(TimeSpan timeout, out RequestContext requestContext) { return this.channel.TryReceiveRequest(timeout, out requestContext); } public Message Request(Message message, TimeSpan timeout) { throw TraceUtility.ThrowHelperError(new NotImplementedException(), message); } public bool WaitForMessage(TimeSpan timeout) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException()); } public IAsyncResult BeginWaitForMessage(TimeSpan timeout, AsyncCallback callback, object state) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException()); } public bool EndWaitForMessage(IAsyncResult result) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException()); } } } // 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
- FileDialog_Vista_Interop.cs
- NullableConverter.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DocumentAutomationPeer.cs
- SQLDecimal.cs
- MemberHolder.cs
- HitTestWithGeometryDrawingContextWalker.cs
- HtmlInputReset.cs
- CodeTypeDelegate.cs
- SqlGenericUtil.cs
- InputBindingCollection.cs
- CompModSwitches.cs
- MSAAWinEventWrap.cs
- QueryContinueDragEvent.cs
- StoreAnnotationsMap.cs
- PackWebRequest.cs
- XNodeSchemaApplier.cs
- ScriptControlManager.cs
- XslException.cs
- HwndHost.cs
- ValidatingPropertiesEventArgs.cs
- ExitEventArgs.cs
- CLRBindingWorker.cs
- HttpGetProtocolImporter.cs
- RegexRunnerFactory.cs
- DirectoryLocalQuery.cs
- EventLogEntryCollection.cs
- ClientConfigurationSystem.cs
- RecordManager.cs
- WrapPanel.cs
- XmlAttributeOverrides.cs
- LazyLoadBehavior.cs
- PenLineCapValidation.cs
- XPathSelfQuery.cs
- ExceptionHelpers.cs
- TheQuery.cs
- pingexception.cs
- _ScatterGatherBuffers.cs
- SHA256Managed.cs
- BaseValidatorDesigner.cs
- SafeTokenHandle.cs
- DbConnectionPoolIdentity.cs
- VariableAction.cs
- wgx_exports.cs
- NumberAction.cs
- OutputCacheSettingsSection.cs
- Codec.cs
- PKCS1MaskGenerationMethod.cs
- DropSourceBehavior.cs
- DeobfuscatingStream.cs
- ServiceModelExtensionElement.cs
- Geometry.cs
- NetPipeSectionData.cs
- CodeDirectionExpression.cs
- Timeline.cs
- IConvertible.cs
- ComponentFactoryHelpers.cs
- DataGridRow.cs
- PrintDocument.cs
- SerializationSectionGroup.cs
- FacetValueContainer.cs
- RelationshipEntry.cs
- SpinLock.cs
- MembershipAdapter.cs
- GeneratedContractType.cs
- Stack.cs
- ExceptionUtil.cs
- MultiBindingExpression.cs
- PageContent.cs
- ConfigurationException.cs
- XmlTypeAttribute.cs
- ListViewItemSelectionChangedEvent.cs
- CompositeTypefaceMetrics.cs
- UntypedNullExpression.cs
- Slider.cs
- _UriSyntax.cs
- LoadRetryAsyncResult.cs
- ZipIOModeEnforcingStream.cs
- XmlSchemaSimpleType.cs
- InputBinding.cs
- VerificationException.cs
- DataGridViewRowsAddedEventArgs.cs
- PenContexts.cs
- Enum.cs
- RawAppCommandInputReport.cs
- DesignRelationCollection.cs
- ThrowHelper.cs
- TableLayoutStyle.cs
- TextEffect.cs
- ZoneIdentityPermission.cs
- XmlExpressionDumper.cs
- NumericPagerField.cs
- SafeCryptHandles.cs
- QueryOptionExpression.cs
- IdlingCommunicationPool.cs
- RelatedPropertyManager.cs
- CompressEmulationStream.cs
- PageParser.cs
- AspNetSynchronizationContext.cs
- SudsWriter.cs