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
- CmsInterop.cs
- SafeLibraryHandle.cs
- HttpApplicationStateBase.cs
- precedingsibling.cs
- CharAnimationBase.cs
- isolationinterop.cs
- Closure.cs
- SettingsAttributes.cs
- HostedTransportConfigurationBase.cs
- login.cs
- UICuesEvent.cs
- RecognitionResult.cs
- XmlElement.cs
- SchemaObjectWriter.cs
- DataGridCaption.cs
- CLSCompliantAttribute.cs
- DockPatternIdentifiers.cs
- IncrementalReadDecoders.cs
- MachineKeySection.cs
- CustomAttributeBuilder.cs
- CodeBlockBuilder.cs
- EntityException.cs
- SHA1.cs
- GridItem.cs
- VideoDrawing.cs
- TableRow.cs
- SmiMetaDataProperty.cs
- GridViewSelectEventArgs.cs
- ThreadStartException.cs
- BmpBitmapEncoder.cs
- DashStyles.cs
- MinMaxParagraphWidth.cs
- TableRowCollection.cs
- KeyGestureValueSerializer.cs
- DataGridPagerStyle.cs
- SmtpNetworkElement.cs
- HtmlGenericControl.cs
- Pair.cs
- SoapExtensionImporter.cs
- MetadataPropertyAttribute.cs
- PerfProviderCollection.cs
- XPathSelectionIterator.cs
- CommandBindingCollection.cs
- HtmlAnchor.cs
- XPathChildIterator.cs
- EventPrivateKey.cs
- ActivityPropertyReference.cs
- PolygonHotSpot.cs
- Comparer.cs
- ServiceEndpointElement.cs
- GridErrorDlg.cs
- ProfileSettings.cs
- securitycriticaldataClass.cs
- UdpTransportBindingElement.cs
- ManagedWndProcTracker.cs
- CheckBoxPopupAdapter.cs
- HttpProxyTransportBindingElement.cs
- MessageSecurityOverHttpElement.cs
- FreezableOperations.cs
- TabControl.cs
- HttpCacheVaryByContentEncodings.cs
- SerializerDescriptor.cs
- TimeoutException.cs
- WindowsTreeView.cs
- FlowchartSizeFeature.cs
- ProtectedConfigurationSection.cs
- FloatUtil.cs
- wgx_commands.cs
- WebPartsPersonalizationAuthorization.cs
- TextTreeTextBlock.cs
- SkipQueryOptionExpression.cs
- TraceRecord.cs
- NumberAction.cs
- BaseCodeDomTreeGenerator.cs
- FixedHighlight.cs
- AlternateView.cs
- XmlSchemaObject.cs
- ListControlDesigner.cs
- NotCondition.cs
- UInt16Converter.cs
- MarkupObject.cs
- ColorAnimationUsingKeyFrames.cs
- CSharpCodeProvider.cs
- HtmlImage.cs
- DelegateTypeInfo.cs
- MenuAutomationPeer.cs
- XpsInterleavingPolicy.cs
- SafeRightsManagementQueryHandle.cs
- _ListenerAsyncResult.cs
- ExceptionHandler.cs
- SqlCaseSimplifier.cs
- HttpHeaderCollection.cs
- ConnectivityStatus.cs
- SeekStoryboard.cs
- ServiceElement.cs
- SessionParameter.cs
- SweepDirectionValidation.cs
- ContractMapping.cs
- EventBuilder.cs
- ISFClipboardData.cs