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
- ArraySortHelper.cs
- CodeLinePragma.cs
- MailAddress.cs
- StorageRoot.cs
- UnsafeNativeMethods.cs
- EditorZone.cs
- RadioButtonRenderer.cs
- ScriptResourceInfo.cs
- RankException.cs
- ToolboxItemAttribute.cs
- ArrayMergeHelper.cs
- TrackingProfileSerializer.cs
- ListViewHitTestInfo.cs
- DataGridViewRowsAddedEventArgs.cs
- IConvertible.cs
- WhitespaceReader.cs
- LayoutEditorPart.cs
- URLMembershipCondition.cs
- CodeDOMProvider.cs
- ConnectionStringEditor.cs
- AttributeCollection.cs
- Composition.cs
- CoreSwitches.cs
- NumberFormatter.cs
- DropShadowBitmapEffect.cs
- CounterCreationDataCollection.cs
- ConnectorDragDropGlyph.cs
- KeySpline.cs
- SqlXmlStorage.cs
- RecordsAffectedEventArgs.cs
- WebResourceAttribute.cs
- KeyFrames.cs
- PageThemeParser.cs
- ClosableStream.cs
- ProcessHostFactoryHelper.cs
- QueryIntervalOp.cs
- LocalizedNameDescriptionPair.cs
- XsdDuration.cs
- ValueQuery.cs
- SqlBulkCopyColumnMappingCollection.cs
- WebPartZone.cs
- PostBackOptions.cs
- InheritanceAttribute.cs
- HashMembershipCondition.cs
- Transform.cs
- safemediahandle.cs
- ExpressionUtilities.cs
- SelectionGlyph.cs
- ObjectCloneHelper.cs
- ResourcePermissionBase.cs
- PropertyToken.cs
- CodeFieldReferenceExpression.cs
- OutputCacheSettings.cs
- CacheSection.cs
- AdRotator.cs
- VisualBasicExpressionConverter.cs
- DateTimeFormatInfo.cs
- CallbackValidator.cs
- ApplicationBuildProvider.cs
- DbProviderFactory.cs
- CounterCreationData.cs
- KeyEventArgs.cs
- __Error.cs
- ContainsRowNumberChecker.cs
- ClientScriptItem.cs
- DeviceContext.cs
- PrintControllerWithStatusDialog.cs
- AdCreatedEventArgs.cs
- QilTernary.cs
- EventLogger.cs
- DecimalConverter.cs
- ValuePatternIdentifiers.cs
- SafeMemoryMappedFileHandle.cs
- CellParagraph.cs
- PointHitTestParameters.cs
- DoubleUtil.cs
- DBAsyncResult.cs
- ADConnectionHelper.cs
- SetState.cs
- PersonalizationStateQuery.cs
- ScriptReferenceEventArgs.cs
- WebSysDisplayNameAttribute.cs
- DoubleCollection.cs
- Size.cs
- ImportedPolicyConversionContext.cs
- TraceLevelStore.cs
- Event.cs
- DataServiceQuery.cs
- SizeAnimation.cs
- BitmapInitialize.cs
- ColumnReorderedEventArgs.cs
- TimeoutException.cs
- CommandExpr.cs
- XsltLoader.cs
- SqlDataSourceCache.cs
- NullEntityWrapper.cs
- ClickablePoint.cs
- __Error.cs
- XmlTextReader.cs
- ContractReference.cs