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
- XmlDocument.cs
- CellParaClient.cs
- TableLayoutStyle.cs
- Typography.cs
- TypeName.cs
- StringResourceManager.cs
- DbDataRecord.cs
- HttpCacheParams.cs
- Material.cs
- FileSystemEnumerable.cs
- PathFigureCollection.cs
- DatagridviewDisplayedBandsData.cs
- AutomationPeer.cs
- FrameworkRichTextComposition.cs
- WebPartZone.cs
- DataProviderNameConverter.cs
- ExpressionsCollectionEditor.cs
- StylusPointDescription.cs
- WebPartCatalogAddVerb.cs
- ButtonAutomationPeer.cs
- StylusCollection.cs
- WebBrowsableAttribute.cs
- KeyedPriorityQueue.cs
- Models.cs
- TabPage.cs
- formatter.cs
- SelfIssuedSamlTokenFactory.cs
- HtmlMobileTextWriter.cs
- AstNode.cs
- FormsAuthenticationUserCollection.cs
- Font.cs
- TdsParserSafeHandles.cs
- InvokerUtil.cs
- DbConnectionPool.cs
- translator.cs
- OutputCacheSection.cs
- ResolveMatchesCD1.cs
- XmlSchemaAll.cs
- MonthChangedEventArgs.cs
- ListBindableAttribute.cs
- AlternateView.cs
- BitmapEffectrendercontext.cs
- Point3DCollection.cs
- DataGridTablesFactory.cs
- CommentEmitter.cs
- ActivityValidator.cs
- ChunkedMemoryStream.cs
- DriveInfo.cs
- DataTemplateKey.cs
- DataGridViewMethods.cs
- _NestedSingleAsyncResult.cs
- ProxyWebPartConnectionCollection.cs
- WebHttpBehavior.cs
- CodeValidator.cs
- DbConnectionOptions.cs
- GlobalizationAssembly.cs
- ToolStripDropDownItem.cs
- InvariantComparer.cs
- DefaultParameterValueAttribute.cs
- COM2ExtendedUITypeEditor.cs
- baseaxisquery.cs
- StatusBar.cs
- XmlStreamStore.cs
- x509utils.cs
- SchemaNames.cs
- JsonDeserializer.cs
- CodeAssignStatement.cs
- DynamicMethod.cs
- BufferedOutputStream.cs
- XmlReflectionImporter.cs
- DecoderNLS.cs
- XsltContext.cs
- DrawingBrush.cs
- TokenBasedSetEnumerator.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ProxyWebPartManager.cs
- CorrelationQuery.cs
- unsafenativemethodstextservices.cs
- RelatedImageListAttribute.cs
- ExceptionValidationRule.cs
- HScrollProperties.cs
- RegexWorker.cs
- COM2IDispatchConverter.cs
- EntityContainerEntitySet.cs
- PackUriHelper.cs
- CodeArrayCreateExpression.cs
- CryptoApi.cs
- CallbackValidatorAttribute.cs
- X509SecurityTokenAuthenticator.cs
- manifestimages.cs
- COM2PictureConverter.cs
- TemplateBindingExpressionConverter.cs
- XmlBaseReader.cs
- CellQuery.cs
- UInt32.cs
- RadioButtonPopupAdapter.cs
- SettingsAttributeDictionary.cs
- DataGridViewTopRowAccessibleObject.cs
- NGCSerializerAsync.cs
- DeclarativeCatalogPart.cs