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
- Decorator.cs
- Int32RectConverter.cs
- ParsedRoute.cs
- CellParaClient.cs
- CheckBoxRenderer.cs
- DataServiceQuery.cs
- DataColumnCollection.cs
- LinqDataSourceStatusEventArgs.cs
- XXXOnTypeBuilderInstantiation.cs
- SqlClientMetaDataCollectionNames.cs
- DATA_BLOB.cs
- InfoCardSchemas.cs
- TreeIterator.cs
- ClientApiGenerator.cs
- MessageSecurityOverHttp.cs
- EventManager.cs
- CompilerResults.cs
- EnvironmentPermission.cs
- FileStream.cs
- ConfigurationManagerHelperFactory.cs
- Matrix3DValueSerializer.cs
- CookieParameter.cs
- ClassDataContract.cs
- LockRecursionException.cs
- GACIdentityPermission.cs
- Object.cs
- XmlDictionaryWriter.cs
- ColumnWidthChangingEvent.cs
- StylusPointPropertyInfo.cs
- LicFileLicenseProvider.cs
- XPathScanner.cs
- GuidelineCollection.cs
- Rules.cs
- MethodInfo.cs
- ExpressionEditorAttribute.cs
- XPathDocument.cs
- FileLoadException.cs
- TypeContext.cs
- SQLBinary.cs
- StrokeNodeEnumerator.cs
- ImportContext.cs
- MsdtcWrapper.cs
- GC.cs
- ImageAnimator.cs
- SizeAnimationClockResource.cs
- EffectiveValueEntry.cs
- HtmlEncodedRawTextWriter.cs
- ProjectionPathBuilder.cs
- AutoScrollExpandMessageFilter.cs
- TargetControlTypeCache.cs
- MsmqActivation.cs
- httpapplicationstate.cs
- AuthenticationServiceManager.cs
- SyndicationItemFormatter.cs
- MetroSerializationManager.cs
- RoleService.cs
- ErrorStyle.cs
- DataTable.cs
- RSAOAEPKeyExchangeFormatter.cs
- DataFormats.cs
- OperatorExpressions.cs
- ValidatorCollection.cs
- ScaleTransform3D.cs
- HandlerMappingMemo.cs
- TextEditorTables.cs
- DragDrop.cs
- SoapFormatterSinks.cs
- DoubleCollection.cs
- XamlInt32CollectionSerializer.cs
- AbstractSvcMapFileLoader.cs
- ExpandCollapsePattern.cs
- CompilationSection.cs
- ToolBar.cs
- LogLogRecordHeader.cs
- TaskExtensions.cs
- GeneratedView.cs
- CharacterShapingProperties.cs
- TrackBarRenderer.cs
- Int32Converter.cs
- ThousandthOfEmRealDoubles.cs
- RC2.cs
- FileDialogCustomPlacesCollection.cs
- ThemeInfoAttribute.cs
- SaveWorkflowCommand.cs
- CheckBox.cs
- XmlSerializableServices.cs
- ConnectionsZone.cs
- TCEAdapterGenerator.cs
- MergeFilterQuery.cs
- sapiproxy.cs
- SortQuery.cs
- StateItem.cs
- WsdlBuildProvider.cs
- RegexRunner.cs
- Vector3DKeyFrameCollection.cs
- ZipFileInfo.cs
- MarkerProperties.cs
- BaseTemplateBuildProvider.cs
- SoapHelper.cs
- IntegerFacetDescriptionElement.cs