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
- SelfIssuedAuthRSAPKCS1SignatureDeformatter.cs
- XhtmlCssHandler.cs
- ButtonBaseAutomationPeer.cs
- CorrelationScope.cs
- VariantWrapper.cs
- ObjectReaderCompiler.cs
- FixedTextSelectionProcessor.cs
- ComboBox.cs
- SizeAnimationBase.cs
- ReadOnlyDictionary.cs
- XmlSchemas.cs
- ScrollItemPattern.cs
- EncodingTable.cs
- SpotLight.cs
- PtsHelper.cs
- BamlBinaryReader.cs
- WebBrowserUriTypeConverter.cs
- InternalTypeHelper.cs
- listitem.cs
- XmlC14NWriter.cs
- CopyAttributesAction.cs
- EntitySqlQueryCacheKey.cs
- AdapterDictionary.cs
- GenericPrincipal.cs
- CacheRequest.cs
- NamespaceQuery.cs
- TimeoutStream.cs
- RelatedImageListAttribute.cs
- CodeTypeOfExpression.cs
- SemaphoreFullException.cs
- MemoryRecordBuffer.cs
- StatusBarPanelClickEvent.cs
- NativeMethods.cs
- HtmlInputButton.cs
- TransformerInfo.cs
- Accessible.cs
- AnimationException.cs
- DbInsertCommandTree.cs
- DesignerTextBoxAdapter.cs
- SendSecurityHeader.cs
- SubclassTypeValidatorAttribute.cs
- CommandValueSerializer.cs
- DescendentsWalkerBase.cs
- DeploymentSection.cs
- XmlWellformedWriter.cs
- Button.cs
- ColumnBinding.cs
- KnownColorTable.cs
- TextContainerHelper.cs
- XPathMultyIterator.cs
- CacheMemory.cs
- SHA1.cs
- HttpListenerException.cs
- IImplicitResourceProvider.cs
- XmlSchemaCompilationSettings.cs
- DataRecord.cs
- BindingMAnagerBase.cs
- FSWPathEditor.cs
- CanExecuteRoutedEventArgs.cs
- ProfileParameter.cs
- RelationalExpressions.cs
- ProfileBuildProvider.cs
- PackagingUtilities.cs
- CommandCollectionEditor.cs
- HttpDictionary.cs
- ExtentCqlBlock.cs
- Grid.cs
- ConstNode.cs
- DynamicResourceExtensionConverter.cs
- SocketAddress.cs
- XPathCompiler.cs
- GeneralTransform3DTo2DTo3D.cs
- Literal.cs
- SplitterPanel.cs
- SettingsPropertyValue.cs
- DefaultWorkflowTransactionService.cs
- XmlCDATASection.cs
- WebControl.cs
- DataGridItem.cs
- SmtpDigestAuthenticationModule.cs
- JpegBitmapEncoder.cs
- ControlCachePolicy.cs
- Calendar.cs
- LabelDesigner.cs
- KeyValuePairs.cs
- TypeInitializationException.cs
- ViewManager.cs
- Atom10FormatterFactory.cs
- ProfileParameter.cs
- ListParaClient.cs
- ConstantCheck.cs
- FontFamily.cs
- ToolBar.cs
- CustomCategoryAttribute.cs
- IndexOutOfRangeException.cs
- ZipIOLocalFileBlock.cs
- LineGeometry.cs
- MultipartIdentifier.cs
- MaxMessageSizeStream.cs
- ThemeDictionaryExtension.cs