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
- WebUtil.cs
- ACL.cs
- SafeLocalMemHandle.cs
- TemplatedWizardStep.cs
- EventDescriptor.cs
- WebControlAdapter.cs
- SQLMoneyStorage.cs
- EventLogPermissionEntry.cs
- DbBuffer.cs
- AddInServer.cs
- AVElementHelper.cs
- SafeNativeMethodsOther.cs
- PopupEventArgs.cs
- RootProfilePropertySettingsCollection.cs
- ObjectDataProvider.cs
- ColumnMapProcessor.cs
- SchemaNamespaceManager.cs
- SafeCryptHandles.cs
- ZipFileInfoCollection.cs
- SqlError.cs
- ServiceRoute.cs
- MarkupProperty.cs
- BooleanStorage.cs
- MdImport.cs
- SecurityChannelListener.cs
- TransactedBatchContext.cs
- Point3DValueSerializer.cs
- CodeDOMUtility.cs
- TabPanel.cs
- ManifestResourceInfo.cs
- FixedHyperLink.cs
- RowUpdatedEventArgs.cs
- ColumnTypeConverter.cs
- NegotiateStream.cs
- SamlDoNotCacheCondition.cs
- CopyAction.cs
- InstanceDescriptor.cs
- FieldBuilder.cs
- EditCommandColumn.cs
- SettingsPropertyWrongTypeException.cs
- basevalidator.cs
- Errors.cs
- Listbox.cs
- WebServiceResponse.cs
- _HeaderInfo.cs
- FormViewModeEventArgs.cs
- Transactions.cs
- CodePageEncoding.cs
- CqlParserHelpers.cs
- ShaperBuffers.cs
- DataGridHeaderBorder.cs
- CleanUpVirtualizedItemEventArgs.cs
- InkCanvas.cs
- Bits.cs
- RangeContentEnumerator.cs
- NativeActivityContext.cs
- TimelineGroup.cs
- XmlSchemaType.cs
- QilLoop.cs
- WorkflowServiceHost.cs
- DefaultObjectMappingItemCollection.cs
- TypefaceMetricsCache.cs
- Utilities.cs
- StorageRoot.cs
- StringReader.cs
- ResolveNameEventArgs.cs
- MarkupCompilePass1.cs
- WpfKnownType.cs
- Query.cs
- HttpCookiesSection.cs
- SymDocumentType.cs
- TransformerTypeCollection.cs
- EmptyEnumerator.cs
- HttpPostClientProtocol.cs
- RuntimeConfig.cs
- FilterableAttribute.cs
- NestedContainer.cs
- BitmapEffectState.cs
- XmlDataSource.cs
- DbConnectionInternal.cs
- DXD.cs
- BigInt.cs
- ListViewItemMouseHoverEvent.cs
- CellLabel.cs
- BuildResultCache.cs
- VersionedStream.cs
- Size.cs
- TableLayoutSettingsTypeConverter.cs
- IsolatedStorage.cs
- ConfigurationManagerHelper.cs
- AutomationFocusChangedEventArgs.cs
- InlinedAggregationOperator.cs
- DbConnectionPoolCounters.cs
- DataGridViewRow.cs
- OperationAbortedException.cs
- InkCanvasSelectionAdorner.cs
- CrossAppDomainChannel.cs
- DrawingVisualDrawingContext.cs
- HtmlSelect.cs
- RelationshipConverter.cs