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
- EmptyImpersonationContext.cs
- CutCopyPasteHelper.cs
- ExternalCalls.cs
- BaseWebProxyFinder.cs
- FontDialog.cs
- SqlDataReaderSmi.cs
- Brush.cs
- SharedStatics.cs
- ToolStripArrowRenderEventArgs.cs
- DataFormats.cs
- GeneralTransform3D.cs
- SafeHandle.cs
- Schedule.cs
- XmlSortKeyAccumulator.cs
- OdbcHandle.cs
- ComponentChangedEvent.cs
- SpellCheck.cs
- XmlMembersMapping.cs
- ConfigurationProviderException.cs
- OuterGlowBitmapEffect.cs
- DeviceFilterEditorDialog.cs
- DataReaderContainer.cs
- SurrogateEncoder.cs
- MSAAWinEventWrap.cs
- UmAlQuraCalendar.cs
- ExpressionReplacer.cs
- Helpers.cs
- Help.cs
- DataGridViewLayoutData.cs
- Bits.cs
- TdsParserStateObject.cs
- BitmapEffect.cs
- DecimalStorage.cs
- CatalogZone.cs
- ObjectDataSourceEventArgs.cs
- TemplateXamlTreeBuilder.cs
- AdapterUtil.cs
- XhtmlStyleClass.cs
- InternalEnumValidator.cs
- ScriptControl.cs
- SharedUtils.cs
- PageContentAsyncResult.cs
- UnicodeEncoding.cs
- CodeSnippetExpression.cs
- CodeConditionStatement.cs
- MinimizableAttributeTypeConverter.cs
- SimpleWebHandlerParser.cs
- URLEditor.cs
- OleDbErrorCollection.cs
- MasterPageParser.cs
- TemplateEditingVerb.cs
- Point3DKeyFrameCollection.cs
- CalendarDateRangeChangingEventArgs.cs
- ExportException.cs
- DataQuery.cs
- ColumnPropertiesGroup.cs
- Propagator.JoinPropagator.cs
- HitTestResult.cs
- HttpModuleCollection.cs
- DatagridviewDisplayedBandsData.cs
- TextEndOfSegment.cs
- ManipulationPivot.cs
- DBCommandBuilder.cs
- KeyToListMap.cs
- BinaryWriter.cs
- StorageBasedPackageProperties.cs
- XsltSettings.cs
- MethodExecutor.cs
- ApplicationServiceManager.cs
- MatrixAnimationUsingPath.cs
- Columns.cs
- ACL.cs
- ImportContext.cs
- DbConnectionPoolOptions.cs
- Activator.cs
- ControlEvent.cs
- infer.cs
- TabItemWrapperAutomationPeer.cs
- NonParentingControl.cs
- StructuredTypeInfo.cs
- SamlAuthorizationDecisionStatement.cs
- DataTableCollection.cs
- panel.cs
- UIElement.cs
- OperationInvokerTrace.cs
- ForeignConstraint.cs
- TemplatingOptionsDialog.cs
- DesigntimeLicenseContext.cs
- ConfigurationSchemaErrors.cs
- Helpers.cs
- FullTextState.cs
- TypeSystemHelpers.cs
- PolyLineSegmentFigureLogic.cs
- SnapshotChangeTrackingStrategy.cs
- Source.cs
- FrameworkTextComposition.cs
- MsmqHostedTransportConfiguration.cs
- CompoundFileReference.cs
- DataSourceCache.cs
- ComplexType.cs