Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Dispatcher / OutputChannelBinder.cs / 1 / OutputChannelBinder.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 OutputChannelBinder : IChannelBinder { IOutputChannel channel; internal OutputChannelBinder(IOutputChannel channel) { if (!((channel != null))) { DiagnosticUtility.DebugAssert("OutputChannelBinder.OutputChannelBinder: (channel != null)"); throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("channel"); } this.channel = channel; } public IChannel Channel { get { return this.channel; } } public bool HasSession { get { return this.channel is ISessionChannel; } } public Uri ListenUri { get { return null; } } public EndpointAddress LocalAddress { get { #pragma warning suppress 56503 // [....], the property is really not implemented, cannot lie, API not public throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException()); } } public EndpointAddress RemoteAddress { get { return this.channel.RemoteAddress; } } public void Abort() { this.channel.Abort(); } public void CloseAfterFault(TimeSpan timeout) { this.channel.Close(timeout); } public IAsyncResult BeginTryReceive(TimeSpan timeout, AsyncCallback callback, object state) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException()); } public bool EndTryReceive(IAsyncResult result, out RequestContext requestContext) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException()); } public IAsyncResult BeginSend(Message message, TimeSpan timeout, AsyncCallback callback, object state) { return this.channel.BeginSend(message, timeout, callback, state); } public void EndSend(IAsyncResult result) { this.channel.EndSend(result); } public void Send(Message message, TimeSpan timeout) { this.channel.Send(message, timeout); } 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) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new NotImplementedException()); } 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
- EntityStoreSchemaGenerator.cs
- FontFaceLayoutInfo.cs
- HtmlDocument.cs
- Parameter.cs
- WebBrowserBase.cs
- ResourceWriter.cs
- MouseEvent.cs
- SyndicationItemFormatter.cs
- TextClipboardData.cs
- EventLogPermissionEntryCollection.cs
- SourceInterpreter.cs
- SystemIPInterfaceStatistics.cs
- DesignerOptionService.cs
- SystemWebCachingSectionGroup.cs
- ReadOnlyCollectionBase.cs
- SystemIcons.cs
- PointValueSerializer.cs
- DataSourceView.cs
- WindowsFormsSynchronizationContext.cs
- FindCriteriaCD1.cs
- CodeAttachEventStatement.cs
- LogReserveAndAppendState.cs
- ISAPIWorkerRequest.cs
- ECDiffieHellmanCngPublicKey.cs
- CreationContext.cs
- SpanIndex.cs
- TextInfo.cs
- AsyncOperationManager.cs
- XmlDictionaryWriter.cs
- JapaneseLunisolarCalendar.cs
- SerializationStore.cs
- WindowsTokenRoleProvider.cs
- XsltException.cs
- Win32Native.cs
- EntitySetBaseCollection.cs
- SmtpNegotiateAuthenticationModule.cs
- SystemIPInterfaceStatistics.cs
- DllNotFoundException.cs
- ToolStripOverflowButton.cs
- TcpActivation.cs
- NoClickablePointException.cs
- DurableMessageDispatchInspector.cs
- CheckPair.cs
- DomainUpDown.cs
- MethodSignatureGenerator.cs
- EdmEntityTypeAttribute.cs
- rsa.cs
- LinkButton.cs
- CopyOfAction.cs
- PipelineModuleStepContainer.cs
- FontWeight.cs
- HttpClientChannel.cs
- FixedBufferAttribute.cs
- NativeMethods.cs
- KeyProperty.cs
- UnmanagedMemoryStream.cs
- mediaeventshelper.cs
- DictionaryGlobals.cs
- XsdDateTime.cs
- InputManager.cs
- FastEncoder.cs
- TransformProviderWrapper.cs
- OLEDB_Util.cs
- BamlLocalizableResource.cs
- ImportOptions.cs
- SystemNetHelpers.cs
- Context.cs
- _CommandStream.cs
- XmlIterators.cs
- BaseCodePageEncoding.cs
- SqlSelectStatement.cs
- CellConstantDomain.cs
- BuildTopDownAttribute.cs
- RecipientInfo.cs
- DecimalAnimation.cs
- DiscardableAttribute.cs
- Journaling.cs
- ComMethodElement.cs
- PermissionSetTriple.cs
- DataRowChangeEvent.cs
- CrossContextChannel.cs
- EntityWithKeyStrategy.cs
- ByeOperationAsyncResult.cs
- DirectoryLocalQuery.cs
- OdbcConnectionPoolProviderInfo.cs
- RsaKeyGen.cs
- WorkflowTransactionService.cs
- ContainerVisual.cs
- HandleCollector.cs
- SoapSchemaExporter.cs
- AssociationSetMetadata.cs
- TriState.cs
- AccessDataSourceWizardForm.cs
- JavaScriptObjectDeserializer.cs
- ManagementOptions.cs
- GuidelineCollection.cs
- TaskExceptionHolder.cs
- MimeObjectFactory.cs
- exports.cs
- DockProviderWrapper.cs