Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Runtime / Remoting / DispatchChannelSink.cs / 1 / DispatchChannelSink.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // File: DispatchChannelSink.cs using System; using System.Collections; using System.IO; using System.Runtime.Remoting; using System.Runtime.Remoting.Messaging; namespace System.Runtime.Remoting.Channels { internal class DispatchChannelSinkProvider : IServerChannelSinkProvider { internal DispatchChannelSinkProvider() { } // DispatchChannelSinkProvider public void GetChannelData(IChannelDataStore channelData) { } public IServerChannelSink CreateSink(IChannelReceiver channel) { return new DispatchChannelSink(); } public IServerChannelSinkProvider Next { get { return null; } set { throw new NotSupportedException(); } } } // class DispatchChannelSinkProvider internal class DispatchChannelSink : IServerChannelSink { internal DispatchChannelSink() { } // DispatchChannelSink public ServerProcessing ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, out IMessage responseMsg, out ITransportHeaders responseHeaders, out Stream responseStream) { if (requestMsg == null) { throw new ArgumentNullException( "requestMsg", Environment.GetResourceString("Remoting_Channel_DispatchSinkMessageMissing")); } // if (requestStream != null) { throw new RemotingException( Environment.GetResourceString("Remoting_Channel_DispatchSinkWantsNullRequestStream")); } responseHeaders = null; responseStream = null; return ChannelServices.DispatchMessage(sinkStack, requestMsg, out responseMsg); } // ProcessMessage public void AsyncProcessResponse(IServerResponseChannelSinkStack sinkStack, Object state, IMessage msg, ITransportHeaders headers, Stream stream) { // We never push ourselves to the sink stack, so this won't be called. throw new NotSupportedException(); } // AsyncProcessResponse public Stream GetResponseStream(IServerResponseChannelSinkStack sinkStack, Object state, IMessage msg, ITransportHeaders headers) { // We never push ourselves to the sink stack, so this won't be called. throw new NotSupportedException(); } // GetResponseStream public IServerChannelSink NextChannelSink { get { return null; } } public IDictionary Properties { get { return null; } } } // class DispatchChannelSink } // namespace System.Runtime.Remoting.Channels // 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
- ContainerVisual.cs
- AdRotator.cs
- SelectionRange.cs
- Timer.cs
- ExpressionBuilder.cs
- XmlElementCollection.cs
- RouteItem.cs
- Calendar.cs
- QuaternionAnimationUsingKeyFrames.cs
- SectionInput.cs
- IndexingContentUnit.cs
- ConfigViewGenerator.cs
- HttpCapabilitiesBase.cs
- ExtenderProvidedPropertyAttribute.cs
- MruCache.cs
- CanonicalizationDriver.cs
- _TLSstream.cs
- ToolStripRendererSwitcher.cs
- activationcontext.cs
- Pair.cs
- DoubleKeyFrameCollection.cs
- DesignerCategoryAttribute.cs
- ContainerFilterService.cs
- SecUtil.cs
- HttpWriter.cs
- GPPOINT.cs
- FactoryMaker.cs
- ListViewSortEventArgs.cs
- DataColumnPropertyDescriptor.cs
- ObjectCloneHelper.cs
- ValidationResult.cs
- XmlDataLoader.cs
- CounterCreationDataCollection.cs
- StartUpEventArgs.cs
- SHA512.cs
- FileLevelControlBuilderAttribute.cs
- TaskHelper.cs
- PackagePart.cs
- PauseStoryboard.cs
- HttpWebResponse.cs
- PageBreakRecord.cs
- SaveLedgerEntryRequest.cs
- TextAction.cs
- Errors.cs
- DoubleAnimationBase.cs
- VBIdentifierName.cs
- ResourceAssociationType.cs
- CollaborationHelperFunctions.cs
- DependencyObjectPropertyDescriptor.cs
- PageSetupDialog.cs
- ListCollectionView.cs
- SectionInformation.cs
- StyleTypedPropertyAttribute.cs
- ClipboardProcessor.cs
- EDesignUtil.cs
- sqlnorm.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- XmlName.cs
- ProtocolsConfigurationEntry.cs
- SubMenuStyle.cs
- DbConnectionStringCommon.cs
- ExpressionConverter.cs
- DataSourceXmlAttributeAttribute.cs
- TiffBitmapDecoder.cs
- DbConnectionStringCommon.cs
- ProfileBuildProvider.cs
- PowerStatus.cs
- CellTreeSimplifier.cs
- FloatUtil.cs
- DataShape.cs
- NumberFormatInfo.cs
- XmlSchemaComplexContentExtension.cs
- NativeMethods.cs
- EntityTypeBase.cs
- WebPartCatalogAddVerb.cs
- DispatcherFrame.cs
- ExpressionCopier.cs
- ControlPersister.cs
- RepeatBehaviorConverter.cs
- _SSPIWrapper.cs
- XhtmlBasicPanelAdapter.cs
- TdsParserHelperClasses.cs
- LinkArea.cs
- PopupEventArgs.cs
- RSAOAEPKeyExchangeFormatter.cs
- SaveFileDialog.cs
- ResourceDefaultValueAttribute.cs
- MailHeaderInfo.cs
- EmbeddedObject.cs
- precedingsibling.cs
- BitmapMetadataBlob.cs
- Border.cs
- BufferedReadStream.cs
- BasicKeyConstraint.cs
- EnumConverter.cs
- GlobalProxySelection.cs
- ButtonFlatAdapter.cs
- RestHandler.cs
- SmiContextFactory.cs
- GeneralTransform3DTo2DTo3D.cs