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
- AddInAttribute.cs
- NumericUpDown.cs
- ExceptionRoutedEventArgs.cs
- D3DImage.cs
- PeerPresenceInfo.cs
- DbParameterHelper.cs
- EntityDesignerBuildProvider.cs
- SQLBinaryStorage.cs
- ColorInterpolationModeValidation.cs
- ClientBuildManagerCallback.cs
- MultipartIdentifier.cs
- SQLGuidStorage.cs
- ExtentJoinTreeNode.cs
- GeneralTransform.cs
- PerformanceCounterCategory.cs
- SynchronizationLockException.cs
- DataGridItemEventArgs.cs
- WrappedIUnknown.cs
- UITypeEditor.cs
- MSAANativeProvider.cs
- ContractValidationHelper.cs
- DynamicRouteExpression.cs
- ListBoxItemWrapperAutomationPeer.cs
- SqlConnection.cs
- BinaryObjectWriter.cs
- SharedDp.cs
- SignedInfo.cs
- IxmlLineInfo.cs
- LinqDataView.cs
- XmlMembersMapping.cs
- HwndSubclass.cs
- SamlSerializer.cs
- Timeline.cs
- HtmlTableCell.cs
- CacheSection.cs
- SpeechUI.cs
- UpdateRecord.cs
- ThreadExceptionDialog.cs
- MsmqChannelFactoryBase.cs
- DecoderExceptionFallback.cs
- PropertyGridCommands.cs
- XpsLiterals.cs
- EDesignUtil.cs
- IApplicationTrustManager.cs
- DataGridViewCellFormattingEventArgs.cs
- Permission.cs
- CommonProperties.cs
- X509SecurityTokenProvider.cs
- ProxyWebPartManager.cs
- WaveHeader.cs
- AutomationPropertyInfo.cs
- DelegateTypeInfo.cs
- DeclarationUpdate.cs
- XamlVector3DCollectionSerializer.cs
- WebPartsPersonalization.cs
- PersistNameAttribute.cs
- Hashtable.cs
- InvariantComparer.cs
- SocketPermission.cs
- ListItemCollection.cs
- Gdiplus.cs
- ProfileSection.cs
- StyleBamlTreeBuilder.cs
- XmlDataSource.cs
- MailMessage.cs
- TrustSection.cs
- FixedDocumentPaginator.cs
- ChangeTracker.cs
- LifetimeServices.cs
- ExtensionWindowResizeGrip.cs
- AsymmetricSecurityProtocol.cs
- LineVisual.cs
- SoapCommonClasses.cs
- BeginCreateSecurityTokenRequest.cs
- TextEffectCollection.cs
- OracleDataReader.cs
- StreamDocument.cs
- DataControlLinkButton.cs
- Evaluator.cs
- DesignerDataTable.cs
- InputMethodStateTypeInfo.cs
- DataGridViewTopLeftHeaderCell.cs
- ProxyAttribute.cs
- TextDecoration.cs
- ActivityDesignerLayoutSerializers.cs
- FormsAuthentication.cs
- SystemNetHelpers.cs
- WebPermission.cs
- StreamGeometryContext.cs
- NotConverter.cs
- IisTraceListener.cs
- BinaryNode.cs
- AlphabeticalEnumConverter.cs
- KnowledgeBase.cs
- MeshGeometry3D.cs
- SortExpressionBuilder.cs
- HashCryptoHandle.cs
- SessionPageStateSection.cs
- ProfileSettings.cs
- SiteIdentityPermission.cs