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
- RepeatButtonAutomationPeer.cs
- ScrollChrome.cs
- ListControlActionList.cs
- ThreadPool.cs
- MessageQueueEnumerator.cs
- DbConnectionPoolOptions.cs
- DataBinding.cs
- ExpressionHelper.cs
- MatrixAnimationUsingKeyFrames.cs
- Update.cs
- FormParameter.cs
- DbFunctionCommandTree.cs
- PeerApplication.cs
- CurrencyManager.cs
- WorkflowServiceHost.cs
- FrameworkContextData.cs
- SimpleHandlerFactory.cs
- DrawingVisual.cs
- TrackingProfile.cs
- CustomWebEventKey.cs
- ByeMessage11.cs
- CharKeyFrameCollection.cs
- StringHandle.cs
- XamlInt32CollectionSerializer.cs
- TextProviderWrapper.cs
- DocumentsTrace.cs
- HtmlForm.cs
- ServerType.cs
- SearchForVirtualItemEventArgs.cs
- CacheDict.cs
- HandleExceptionArgs.cs
- SocketElement.cs
- XmlAnyElementAttributes.cs
- HorizontalAlignConverter.cs
- SoapExtensionImporter.cs
- VariantWrapper.cs
- X509ThumbprintKeyIdentifierClause.cs
- DesignUtil.cs
- InvokePattern.cs
- VoiceChangeEventArgs.cs
- HijriCalendar.cs
- _SslSessionsCache.cs
- UncommonField.cs
- BamlBinaryWriter.cs
- ClientSettingsProvider.cs
- AutomationProperties.cs
- Renderer.cs
- ValueExpressions.cs
- TableItemProviderWrapper.cs
- ContractMethodInfo.cs
- GlobalItem.cs
- CodeDomDesignerLoader.cs
- TagPrefixCollection.cs
- Point4DValueSerializer.cs
- SessionPageStatePersister.cs
- SynchronizedMessageSource.cs
- ToolStripDropDownButton.cs
- ISAPIWorkerRequest.cs
- EventLogTraceListener.cs
- metadatamappinghashervisitor.cs
- DescendantBaseQuery.cs
- StaticDataManager.cs
- StringSource.cs
- RemotingConfigParser.cs
- FontFamily.cs
- ExceptionUtility.cs
- StrongNameIdentityPermission.cs
- Help.cs
- ExceptionTranslationTable.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- DataKeyCollection.cs
- XamlLoadErrorInfo.cs
- DefaultProxySection.cs
- XmlSerializationReader.cs
- Part.cs
- ToolTipAutomationPeer.cs
- NestedContainer.cs
- SpnEndpointIdentity.cs
- Material.cs
- OneOfConst.cs
- AnonymousIdentificationModule.cs
- SafeEventLogWriteHandle.cs
- MarkupCompilePass1.cs
- VersionPair.cs
- RegexWorker.cs
- ObjectReaderCompiler.cs
- NavigationPropertySingletonExpression.cs
- ModuleElement.cs
- BCLDebug.cs
- Error.cs
- _BaseOverlappedAsyncResult.cs
- SafeMILHandleMemoryPressure.cs
- SignatureDescription.cs
- SequentialWorkflowRootDesigner.cs
- KnownTypes.cs
- PasswordTextContainer.cs
- EventMappingSettings.cs
- ClientConfigurationHost.cs
- QueryContinueDragEvent.cs
- VisualTarget.cs