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
- DbProviderFactory.cs
- DayRenderEvent.cs
- ConnectionStringSettingsCollection.cs
- ListViewGroup.cs
- DelegateHelpers.cs
- KerberosSecurityTokenProvider.cs
- EventSinkActivity.cs
- HybridDictionary.cs
- RectangleGeometry.cs
- InputReferenceExpression.cs
- FileInfo.cs
- _ConnectOverlappedAsyncResult.cs
- SafeNativeMethods.cs
- NativeMethodsOther.cs
- Tile.cs
- IsolatedStorageFilePermission.cs
- UrlAuthFailedErrorFormatter.cs
- MetafileHeaderWmf.cs
- WebPartConnectionCollection.cs
- ToolboxDataAttribute.cs
- XmlILTrace.cs
- ReadOnlyDictionary.cs
- StringUtil.cs
- CustomTypeDescriptor.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- Helpers.cs
- WindowsFormsLinkLabel.cs
- ToolStrip.cs
- DynamicActivityProperty.cs
- datacache.cs
- SchemaMapping.cs
- ParameterElementCollection.cs
- XmlUtil.cs
- WebPartTracker.cs
- TagPrefixAttribute.cs
- HMAC.cs
- ChunkedMemoryStream.cs
- ExpressionNormalizer.cs
- CodeIndexerExpression.cs
- DataKey.cs
- HTMLTextWriter.cs
- shaperfactoryquerycachekey.cs
- SQLDouble.cs
- CallbackTimeoutsBehavior.cs
- Utility.cs
- ManagementPath.cs
- ComPlusContractBehavior.cs
- ArgumentException.cs
- Utils.cs
- DeflateEmulationStream.cs
- Currency.cs
- PropertySet.cs
- PopupEventArgs.cs
- InfoCardKeyedHashAlgorithm.cs
- ReadOnlyHierarchicalDataSource.cs
- MenuItemStyle.cs
- DataBinder.cs
- BaseCodeDomTreeGenerator.cs
- Command.cs
- FaultPropagationRecord.cs
- AnnotationMap.cs
- BrowserTree.cs
- MethodRental.cs
- IndexedWhereQueryOperator.cs
- CurrencyWrapper.cs
- SiteMapDataSourceView.cs
- PathGeometry.cs
- FunctionNode.cs
- VariantWrapper.cs
- AnnouncementSendsAsyncResult.cs
- Table.cs
- DataServiceProcessingPipelineEventArgs.cs
- TreeNodeSelectionProcessor.cs
- OledbConnectionStringbuilder.cs
- ValuePattern.cs
- SqlNodeAnnotation.cs
- Italic.cs
- FileInfo.cs
- DriveInfo.cs
- SharedDp.cs
- StateMachineTimers.cs
- _SslStream.cs
- DropDownList.cs
- DictionaryBase.cs
- Table.cs
- AncillaryOps.cs
- MemberExpressionHelper.cs
- DesignerLoader.cs
- Certificate.cs
- DiscoveryClient.cs
- XmlSortKeyAccumulator.cs
- ApplicationManager.cs
- WebProxyScriptElement.cs
- Registry.cs
- NameValuePair.cs
- PartialList.cs
- HttpChannelHelper.cs
- DataGridCellsPanel.cs
- HttpCookieCollection.cs
- Label.cs