Code:
/ FX-1434 / FX-1434 / 1.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
- CompositeControlDesigner.cs
- StatusBarItem.cs
- SessionState.cs
- CharAnimationUsingKeyFrames.cs
- PartitionResolver.cs
- DataGridViewCell.cs
- ClientApiGenerator.cs
- LingerOption.cs
- PresentationAppDomainManager.cs
- QualifiedCellIdBoolean.cs
- AsyncParams.cs
- TextOutput.cs
- PrintPreviewControl.cs
- unsafenativemethodsother.cs
- AppDomainAttributes.cs
- GlobalAllocSafeHandle.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- ValueProviderWrapper.cs
- CacheVirtualItemsEvent.cs
- Serializer.cs
- GridViewDeleteEventArgs.cs
- ScriptReference.cs
- HttpWebResponse.cs
- CubicEase.cs
- documentsequencetextcontainer.cs
- DBDataPermission.cs
- DataGridViewHeaderCell.cs
- MediaCommands.cs
- EntityTypeBase.cs
- SharedPersonalizationStateInfo.cs
- FlowDocumentScrollViewer.cs
- SelectionGlyphBase.cs
- CmsInterop.cs
- SelectionListDesigner.cs
- XmlConvert.cs
- PropagatorResult.cs
- AuthenticationConfig.cs
- ProcessProtocolHandler.cs
- TraceSource.cs
- Stackframe.cs
- HttpModulesSection.cs
- TemplateColumn.cs
- HtmlUtf8RawTextWriter.cs
- DbConnectionOptions.cs
- BaseTemplateBuildProvider.cs
- DBDataPermissionAttribute.cs
- TemplateComponentConnector.cs
- SqlXml.cs
- LayoutDump.cs
- SignedXml.cs
- XmlParserContext.cs
- ProxyAttribute.cs
- AppDomainManager.cs
- _BufferOffsetSize.cs
- ListBase.cs
- DLinqDataModelProvider.cs
- Itemizer.cs
- XmlnsDefinitionAttribute.cs
- XmlIlGenerator.cs
- WebSysDescriptionAttribute.cs
- Vector3dCollection.cs
- TextOutput.cs
- MemoryRecordBuffer.cs
- FloaterParagraph.cs
- QueryExecutionOption.cs
- XmlDataLoader.cs
- Helpers.cs
- SessionIDManager.cs
- HashAlgorithm.cs
- HttpRequestCacheValidator.cs
- OdbcDataAdapter.cs
- CharacterBuffer.cs
- SiteMembershipCondition.cs
- XmlILConstructAnalyzer.cs
- ButtonField.cs
- KnowledgeBase.cs
- Helper.cs
- DataGridHelper.cs
- TextModifier.cs
- DelegatingHeader.cs
- ScriptDescriptor.cs
- ReflectionHelper.cs
- SiteMapDesignerDataSourceView.cs
- Label.cs
- ServiceContractGenerator.cs
- ToolStripStatusLabel.cs
- ForwardPositionQuery.cs
- FormsAuthenticationUser.cs
- ConfigurationStrings.cs
- CollaborationHelperFunctions.cs
- SqlTypeSystemProvider.cs
- UpdateExpressionVisitor.cs
- SamlAuthorityBinding.cs
- EvidenceBase.cs
- InArgument.cs
- SqlReferenceCollection.cs
- UserMapPath.cs
- ObjectHandle.cs
- OneToOneMappingSerializer.cs
- CodeExporter.cs