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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EntityDesignerUtils.cs
- ProcessHostFactoryHelper.cs
- EventRecordWrittenEventArgs.cs
- WebPartCatalogCloseVerb.cs
- HtmlElement.cs
- ContextInformation.cs
- LabelLiteral.cs
- XmlResolver.cs
- XmlWrappingWriter.cs
- EmptyEnumerable.cs
- BindingCompleteEventArgs.cs
- FaultContractAttribute.cs
- OrElse.cs
- IconBitmapDecoder.cs
- WindowsListViewScroll.cs
- DockProviderWrapper.cs
- ECDsa.cs
- JsonDataContract.cs
- XsdDataContractImporter.cs
- Transactions.cs
- DataBindingExpressionBuilder.cs
- XmlEventCache.cs
- SafeBitVector32.cs
- GiveFeedbackEvent.cs
- ComponentResourceManager.cs
- Win32PrintDialog.cs
- XmlKeywords.cs
- EmbossBitmapEffect.cs
- ActivityLocationReferenceEnvironment.cs
- CompileLiteralTextParser.cs
- UnaryQueryOperator.cs
- EntityDataSourceContextDisposingEventArgs.cs
- ProcessMonitor.cs
- WriterOutput.cs
- NativeActivityFaultContext.cs
- ResXDataNode.cs
- ReferentialConstraintRoleElement.cs
- ParseElementCollection.cs
- DataGridCell.cs
- EntityViewContainer.cs
- DataKeyCollection.cs
- SymLanguageVendor.cs
- EncoderBestFitFallback.cs
- SingleResultAttribute.cs
- keycontainerpermission.cs
- TaskExceptionHolder.cs
- OletxEnlistment.cs
- ObjectDataSourceDisposingEventArgs.cs
- DrawItemEvent.cs
- RegisteredScript.cs
- FontTypeConverter.cs
- ListControl.cs
- SqlInfoMessageEvent.cs
- ScriptDescriptor.cs
- BitmapDownload.cs
- EncryptedData.cs
- InvalidComObjectException.cs
- dbdatarecord.cs
- OleDbMetaDataFactory.cs
- BigInt.cs
- SecurityContext.cs
- DeploymentExceptionMapper.cs
- CodeGotoStatement.cs
- ImageButton.cs
- ValuePatternIdentifiers.cs
- SQLConvert.cs
- EndpointBehaviorElement.cs
- StylusPointProperties.cs
- ProfileSettingsCollection.cs
- _CookieModule.cs
- NavigationCommands.cs
- JoinElimination.cs
- ExecutionContext.cs
- BamlRecordWriter.cs
- GetLedgerRequest.cs
- SchemaNamespaceManager.cs
- SQLMembershipProvider.cs
- ManualResetEvent.cs
- HostSecurityManager.cs
- SelfIssuedAuthAsymmetricKey.cs
- GenericPrincipal.cs
- UIPermission.cs
- PriorityQueue.cs
- KeyPullup.cs
- OutputScopeManager.cs
- RangeValidator.cs
- CombinedGeometry.cs
- BulletDecorator.cs
- CaseInsensitiveComparer.cs
- StructuredTypeInfo.cs
- EdmError.cs
- FixedSOMFixedBlock.cs
- DocumentViewerBaseAutomationPeer.cs
- InvalidTimeZoneException.cs
- DetailsView.cs
- DbException.cs
- TagMapCollection.cs
- CodeGotoStatement.cs
- Stacktrace.cs
- BoundsDrawingContextWalker.cs