Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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")); } // 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- User.cs
- LabelInfo.cs
- CodeSubDirectory.cs
- WpfGeneratedKnownTypes.cs
- DBSchemaRow.cs
- RemoteWebConfigurationHost.cs
- PeerApplicationLaunchInfo.cs
- X509Certificate.cs
- EntityClassGenerator.cs
- DataObjectCopyingEventArgs.cs
- Trigger.cs
- ComPlusSynchronizationContext.cs
- DefaultBindingPropertyAttribute.cs
- Menu.cs
- AdPostCacheSubstitution.cs
- FormsAuthenticationConfiguration.cs
- SHA1CryptoServiceProvider.cs
- GridView.cs
- TouchesCapturedWithinProperty.cs
- RemotingConfiguration.cs
- Documentation.cs
- TracePayload.cs
- PropertyBuilder.cs
- Camera.cs
- BoundField.cs
- WindowsScrollBar.cs
- HtmlFormWrapper.cs
- Win32SafeHandles.cs
- EmissiveMaterial.cs
- RegexCharClass.cs
- Scripts.cs
- MethodBody.cs
- OperatingSystem.cs
- ClientSession.cs
- SqlErrorCollection.cs
- AppendHelper.cs
- ReachFixedPageSerializer.cs
- DateTimeOffset.cs
- TdsParserSessionPool.cs
- CommentEmitter.cs
- DocumentPaginator.cs
- SynchronizedInputPattern.cs
- XPathScanner.cs
- UrlPath.cs
- MoveSizeWinEventHandler.cs
- Blend.cs
- WebScriptEnablingBehavior.cs
- ConnectionProviderAttribute.cs
- MenuItemBinding.cs
- ETagAttribute.cs
- _FixedSizeReader.cs
- PrtCap_Public_Simple.cs
- GlobalizationSection.cs
- MonitoringDescriptionAttribute.cs
- HierarchicalDataBoundControl.cs
- EncodingNLS.cs
- Int32.cs
- ConcurrentDictionary.cs
- WindowsTooltip.cs
- PersonalizationProviderCollection.cs
- BitmapCache.cs
- OdbcConnectionPoolProviderInfo.cs
- EntityClassGenerator.cs
- ToolboxItemImageConverter.cs
- ColumnPropertiesGroup.cs
- ProfileService.cs
- sqlmetadatafactory.cs
- Schema.cs
- ParserHooks.cs
- PageCodeDomTreeGenerator.cs
- Size.cs
- RequestSecurityTokenResponse.cs
- UrlPath.cs
- PrintEvent.cs
- AvTraceDetails.cs
- ExpressionNode.cs
- TdsParserSessionPool.cs
- CommentEmitter.cs
- _TimerThread.cs
- HtmlInputReset.cs
- TablePatternIdentifiers.cs
- SerializationException.cs
- NativeMethods.cs
- InstanceContext.cs
- DocumentViewerConstants.cs
- InkCanvasAutomationPeer.cs
- Encoder.cs
- PageThemeCodeDomTreeGenerator.cs
- HandlerWithFactory.cs
- TemplateControlBuildProvider.cs
- ContextConfiguration.cs
- NullableLongMinMaxAggregationOperator.cs
- WindowsFormsHelpers.cs
- AxWrapperGen.cs
- DataKey.cs
- ReaderWriterLock.cs
- EpmContentSerializerBase.cs
- EventLogEntry.cs
- HeaderUtility.cs
- WorkflowExecutor.cs