Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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")); } // check arguments 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
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WorkflowControlEndpoint.cs
- ClientSideQueueItem.cs
- URLString.cs
- ToolStripContentPanelDesigner.cs
- WindowsScrollBarBits.cs
- GACMembershipCondition.cs
- ConfigurationManagerHelperFactory.cs
- ProcessModelInfo.cs
- DockPattern.cs
- GridViewItemAutomationPeer.cs
- Baml2006Reader.cs
- FastEncoderStatics.cs
- LogLogRecordEnumerator.cs
- ResourceDescriptionAttribute.cs
- DeferredElementTreeState.cs
- QuerySettings.cs
- CheckBoxStandardAdapter.cs
- IntPtr.cs
- RichTextBox.cs
- XDeferredAxisSource.cs
- QueryGenerator.cs
- DSACryptoServiceProvider.cs
- RawMouseInputReport.cs
- Help.cs
- DesignerCategoryAttribute.cs
- EntityRecordInfo.cs
- X500Name.cs
- SortedList.cs
- ClickablePoint.cs
- MetabaseServerConfig.cs
- ValidationService.cs
- ApplicationGesture.cs
- RequestCacheEntry.cs
- ActivityDesigner.cs
- AuthenticatingEventArgs.cs
- TreeNodeCollection.cs
- Context.cs
- IPEndPoint.cs
- MetadataItem_Static.cs
- HandleExceptionArgs.cs
- AffineTransform3D.cs
- PeerToPeerException.cs
- SystemColors.cs
- dsa.cs
- ipaddressinformationcollection.cs
- StreamSecurityUpgradeAcceptorBase.cs
- ColumnHeaderConverter.cs
- RowsCopiedEventArgs.cs
- TerminateSequence.cs
- SimpleTypesSurrogate.cs
- SeekStoryboard.cs
- OleDbParameter.cs
- ParentQuery.cs
- unsafeIndexingFilterStream.cs
- CngProvider.cs
- HtmlTableCellCollection.cs
- TrackingQueryElement.cs
- AutoResetEvent.cs
- X509ChainElement.cs
- ConfigsHelper.cs
- WpfWebRequestHelper.cs
- FontCacheUtil.cs
- ListDictionary.cs
- KeyValuePair.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- NegotiationTokenAuthenticator.cs
- OracleLob.cs
- SqlBulkCopyColumnMappingCollection.cs
- FormViewModeEventArgs.cs
- AdapterDictionary.cs
- ObjectDataSourceDisposingEventArgs.cs
- TagMapCollection.cs
- CounterSampleCalculator.cs
- RecordManager.cs
- X509SubjectKeyIdentifierClause.cs
- FilterUserControlBase.cs
- OdbcEnvironmentHandle.cs
- XmlWellformedWriter.cs
- BitmapImage.cs
- Calendar.cs
- CompositeDataBoundControl.cs
- SqlClientWrapperSmiStream.cs
- PersistencePipeline.cs
- VirtualPathData.cs
- mongolianshape.cs
- AnalyzedTree.cs
- BroadcastEventHelper.cs
- ComplusEndpointConfigContainer.cs
- SettingsProviderCollection.cs
- CompilationRelaxations.cs
- WsdlBuildProvider.cs
- RoleGroupCollection.cs
- CodeCastExpression.cs
- TextSelectionProcessor.cs
- DecimalAnimationBase.cs
- RoutedUICommand.cs
- HostSecurityManager.cs
- Function.cs
- SafeFindHandle.cs
- MissingFieldException.cs