Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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 // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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 // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ItemCollection.cs
- Helper.cs
- ObjectDisposedException.cs
- PageCache.cs
- SupportingTokenDuplexChannel.cs
- DataServiceHostFactory.cs
- CultureMapper.cs
- ReferentialConstraint.cs
- CatalogPartChrome.cs
- Animatable.cs
- BaseDataList.cs
- NavigationPropertySingletonExpression.cs
- DockPattern.cs
- MatcherBuilder.cs
- TaiwanCalendar.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- ToolboxItemSnapLineBehavior.cs
- SqlDataSourceSelectingEventArgs.cs
- OdbcPermission.cs
- QilVisitor.cs
- DocumentPage.cs
- ReadingWritingEntityEventArgs.cs
- DbModificationCommandTree.cs
- SqlClientWrapperSmiStreamChars.cs
- ObfuscateAssemblyAttribute.cs
- SequenceRange.cs
- Helper.cs
- StrongNamePublicKeyBlob.cs
- InstallerTypeAttribute.cs
- PropertyReferenceExtension.cs
- RoutedEventArgs.cs
- SmtpLoginAuthenticationModule.cs
- FixedSOMElement.cs
- DiffuseMaterial.cs
- UInt64.cs
- CounterSetInstanceCounterDataSet.cs
- EventPrivateKey.cs
- LineMetrics.cs
- ConstraintManager.cs
- InputQueueChannelAcceptor.cs
- MemberPath.cs
- ServerReliableChannelBinder.cs
- IgnorePropertiesAttribute.cs
- PropertyValueChangedEvent.cs
- SatelliteContractVersionAttribute.cs
- UInt16Storage.cs
- KnownBoxes.cs
- ProcessThread.cs
- Simplifier.cs
- Vector3DCollectionConverter.cs
- TableAutomationPeer.cs
- SplashScreenNativeMethods.cs
- ToolStripDropTargetManager.cs
- IISMapPath.cs
- QilDataSource.cs
- CheckBoxAutomationPeer.cs
- ColorMap.cs
- EventRoute.cs
- ImageButton.cs
- MexHttpsBindingElement.cs
- DataGridViewSortCompareEventArgs.cs
- DetailsViewModeEventArgs.cs
- SafeHandle.cs
- CqlLexerHelpers.cs
- BamlStream.cs
- EntityExpressionVisitor.cs
- mediaeventargs.cs
- AssertSection.cs
- ImmutableCollection.cs
- SecurityRuntime.cs
- SqlGenericUtil.cs
- AssemblyHash.cs
- AppDomainProtocolHandler.cs
- DesigntimeLicenseContext.cs
- DomainConstraint.cs
- TypeSystem.cs
- Task.cs
- DetailsView.cs
- UseLicense.cs
- ExtendedPropertyInfo.cs
- ValidationRuleCollection.cs
- ThaiBuddhistCalendar.cs
- EmbeddedObject.cs
- ComponentDispatcher.cs
- ImmutableDispatchRuntime.cs
- CompressEmulationStream.cs
- OracleParameter.cs
- PagerStyle.cs
- CheckBoxFlatAdapter.cs
- DocumentCollection.cs
- ItemList.cs
- WebSysDisplayNameAttribute.cs
- ISAPIRuntime.cs
- HashSetEqualityComparer.cs
- FindCriteria.cs
- DocumentViewerBaseAutomationPeer.cs
- ValidatedControlConverter.cs
- FocusManager.cs
- CodeTypeMember.cs
- EllipseGeometry.cs