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
- LoginName.cs
- XmlSchemaSimpleTypeUnion.cs
- PolicyUtility.cs
- RegionIterator.cs
- DragEventArgs.cs
- FunctionQuery.cs
- DataRowCollection.cs
- XPathChildIterator.cs
- TextTreeInsertUndoUnit.cs
- TextServicesPropertyRanges.cs
- EditCommandColumn.cs
- CompositeCollection.cs
- ObjectParameter.cs
- MethodImplAttribute.cs
- ObjectItemNoOpAssemblyLoader.cs
- AssertSection.cs
- AppModelKnownContentFactory.cs
- DrawingCollection.cs
- Configuration.cs
- ProtectedConfigurationSection.cs
- RegexGroupCollection.cs
- CaseStatement.cs
- BasicAsyncResult.cs
- MetafileHeaderWmf.cs
- UdpRetransmissionSettings.cs
- HandlerBase.cs
- BindStream.cs
- TrackingProfileCache.cs
- EmbeddedObject.cs
- WebCategoryAttribute.cs
- PrintPreviewDialog.cs
- NativeMethodsCLR.cs
- ListItem.cs
- DataTableCollection.cs
- DbConnectionStringBuilder.cs
- TemplateGroupCollection.cs
- NativeMethods.cs
- DispatcherExceptionEventArgs.cs
- WebPartUtil.cs
- FollowerQueueCreator.cs
- SecurityDocument.cs
- RSAPKCS1SignatureFormatter.cs
- XmlSerializerFactory.cs
- GridView.cs
- XmlDocumentType.cs
- XmlCharCheckingWriter.cs
- SafeFindHandle.cs
- XmlSchemaSequence.cs
- TemplateBindingExtension.cs
- ShaderRenderModeValidation.cs
- ProcessHost.cs
- BindingSource.cs
- COAUTHIDENTITY.cs
- X509WindowsSecurityToken.cs
- DecoderFallbackWithFailureFlag.cs
- IsolatedStorageFileStream.cs
- FixedSOMGroup.cs
- Crypto.cs
- AppDomainCompilerProxy.cs
- CancellationHandler.cs
- Renderer.cs
- ConfigurationLoaderException.cs
- XmlAnyAttributeAttribute.cs
- Splitter.cs
- SolidBrush.cs
- BindableAttribute.cs
- SoapFault.cs
- HttpPostedFile.cs
- StylusPointProperties.cs
- AlignmentYValidation.cs
- TitleStyle.cs
- ColorConverter.cs
- PolyLineSegment.cs
- MethodImplAttribute.cs
- ResourceBinder.cs
- SQLBytesStorage.cs
- AcceleratedTokenAuthenticator.cs
- CallbackValidatorAttribute.cs
- DynamicFilterExpression.cs
- DataTableReaderListener.cs
- CompiledXpathExpr.cs
- EncoderReplacementFallback.cs
- XamlSerializer.cs
- VirtualDirectoryMappingCollection.cs
- QuestionEventArgs.cs
- FixedHighlight.cs
- DataProtection.cs
- NullRuntimeConfig.cs
- SqlCommand.cs
- InputReportEventArgs.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- ScriptingRoleServiceSection.cs
- QueryBranchOp.cs
- ReadOnlyObservableCollection.cs
- CodeAccessPermission.cs
- TextHidden.cs
- MembershipUser.cs
- ScrollEvent.cs
- DisplayMemberTemplateSelector.cs
- PropertyChange.cs