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
- XmlDataSourceNodeDescriptor.cs
- InternalTransaction.cs
- XmlSchemaSubstitutionGroup.cs
- MasterPage.cs
- SqlRewriteScalarSubqueries.cs
- NamedObject.cs
- Timer.cs
- FactoryId.cs
- Control.cs
- SerializerProvider.cs
- HijriCalendar.cs
- AttributeConverter.cs
- _ConnectOverlappedAsyncResult.cs
- MarkupCompilePass2.cs
- BasePattern.cs
- Int32Converter.cs
- CompatibleComparer.cs
- XmlSchemaAll.cs
- CaseCqlBlock.cs
- PriorityBinding.cs
- FilterableAttribute.cs
- PriorityItem.cs
- QuadraticBezierSegment.cs
- BamlStream.cs
- Int16KeyFrameCollection.cs
- TextTreePropertyUndoUnit.cs
- VBIdentifierName.cs
- ProtocolsSection.cs
- WindowsSecurityTokenAuthenticator.cs
- ComboBoxAutomationPeer.cs
- XPathDocumentNavigator.cs
- ExpressionEditorAttribute.cs
- DataGridViewUtilities.cs
- Byte.cs
- CaseStatement.cs
- HttpApplicationStateBase.cs
- MessageEncoderFactory.cs
- AssemblyGen.cs
- wmiprovider.cs
- StringFunctions.cs
- SqlXmlStorage.cs
- DesignerSerializationOptionsAttribute.cs
- StringValidator.cs
- SslStream.cs
- TransformValueSerializer.cs
- RelationalExpressions.cs
- EditorOptionAttribute.cs
- UnmanagedBitmapWrapper.cs
- GeneralTransform3D.cs
- SchemaNotation.cs
- ClipboardProcessor.cs
- FixedBufferAttribute.cs
- GenericUriParser.cs
- CustomAssemblyResolver.cs
- AddInController.cs
- SiteMapSection.cs
- SymmetricAlgorithm.cs
- CollectionContainer.cs
- MetadataCacheItem.cs
- Viewport2DVisual3D.cs
- FileDialog_Vista.cs
- SchemaObjectWriter.cs
- Visual3D.cs
- QuerySettings.cs
- CreatingCookieEventArgs.cs
- PerspectiveCamera.cs
- ControlBindingsConverter.cs
- EntitySqlQueryState.cs
- TableLayoutPanelCellPosition.cs
- PlatformNotSupportedException.cs
- BinaryFormatterWriter.cs
- ScrollableControl.cs
- HtmlInputSubmit.cs
- ContractHandle.cs
- SubMenuStyleCollectionEditor.cs
- CompositeControl.cs
- Ref.cs
- RuleInfoComparer.cs
- CompilerTypeWithParams.cs
- CngKeyCreationParameters.cs
- DbParameterCollection.cs
- WinInet.cs
- GridViewRow.cs
- XomlSerializationHelpers.cs
- WebPartManager.cs
- ArraySegment.cs
- ModelEditingScope.cs
- cookie.cs
- TraceContext.cs
- PackageRelationshipCollection.cs
- RepeatInfo.cs
- BlobPersonalizationState.cs
- RuntimeEnvironment.cs
- EdmPropertyAttribute.cs
- ApplicationInterop.cs
- DataBindingList.cs
- TextEditorThreadLocalStore.cs
- FrugalList.cs
- NumericUpDownAcceleration.cs
- CustomError.cs