Code:
/ FX-1434 / FX-1434 / 1.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
- WindowInteropHelper.cs
- SmiRecordBuffer.cs
- TableLayoutSettingsTypeConverter.cs
- ExpressionContext.cs
- CommandEventArgs.cs
- DataGridViewImageColumn.cs
- VirtualDirectoryMappingCollection.cs
- ClientBase.cs
- ColorEditor.cs
- DataGridSortCommandEventArgs.cs
- ECDsaCng.cs
- PerformanceCounterPermission.cs
- TableItemStyle.cs
- TcpHostedTransportConfiguration.cs
- DataComponentGenerator.cs
- TypeBuilderInstantiation.cs
- DataGridTextColumn.cs
- FixUp.cs
- KnownIds.cs
- ObjectConverter.cs
- ipaddressinformationcollection.cs
- CodeIdentifiers.cs
- GlyphInfoList.cs
- CodeMemberProperty.cs
- ProgressChangedEventArgs.cs
- ImportContext.cs
- VirtualizingStackPanel.cs
- SoapElementAttribute.cs
- TextServicesCompartmentEventSink.cs
- RedirectionProxy.cs
- EdmItemCollection.cs
- AsyncResult.cs
- NonVisualControlAttribute.cs
- Rotation3DAnimationBase.cs
- TagMapCollection.cs
- ScriptingAuthenticationServiceSection.cs
- UpdatePanelTrigger.cs
- _BufferOffsetSize.cs
- ParameterExpression.cs
- SqlCommandSet.cs
- PackagingUtilities.cs
- NavigateEvent.cs
- AliasExpr.cs
- BindingCompleteEventArgs.cs
- ViewPort3D.cs
- BufferAllocator.cs
- RootProfilePropertySettingsCollection.cs
- TimeZone.cs
- CollectionChangeEventArgs.cs
- SimpleWorkerRequest.cs
- CodeExpressionCollection.cs
- GeometryGroup.cs
- ChangeProcessor.cs
- EndEvent.cs
- RefreshPropertiesAttribute.cs
- NegotiateStream.cs
- Token.cs
- XslAstAnalyzer.cs
- SqlCacheDependencySection.cs
- PenLineCapValidation.cs
- Menu.cs
- KnownTypesProvider.cs
- ToolbarAUtomationPeer.cs
- MethodBuilderInstantiation.cs
- MatrixTransform.cs
- BuildDependencySet.cs
- UserMapPath.cs
- SchemaNames.cs
- WorkflowShape.cs
- NegationPusher.cs
- UserInitiatedNavigationPermission.cs
- PermissionAttributes.cs
- WinEventTracker.cs
- ModelFunctionTypeElement.cs
- DynamicPropertyHolder.cs
- DataStreams.cs
- DataServiceException.cs
- AnimationException.cs
- ProfilePropertySettings.cs
- infer.cs
- BuildProvidersCompiler.cs
- XmlSchemaComplexContentExtension.cs
- Compiler.cs
- QilIterator.cs
- InputLanguageEventArgs.cs
- EmptyStringExpandableObjectConverter.cs
- WorkflowMarkupSerializationProvider.cs
- LoginDesignerUtil.cs
- SafeHandle.cs
- SymbolType.cs
- OdbcError.cs
- DropShadowEffect.cs
- WebHeaderCollection.cs
- PaintValueEventArgs.cs
- QilReference.cs
- RtfFormatStack.cs
- SafePEFileHandle.cs
- Rules.cs
- CodePageEncoding.cs
- StateFinalizationDesigner.cs