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
- _AutoWebProxyScriptHelper.cs
- InputScopeAttribute.cs
- ColorPalette.cs
- TripleDES.cs
- WebPartTracker.cs
- CheckableControlBaseAdapter.cs
- IPipelineRuntime.cs
- InsufficientExecutionStackException.cs
- IdentityReference.cs
- CapabilitiesAssignment.cs
- AttachedPropertyBrowsableAttribute.cs
- PenThreadPool.cs
- WSSecurityXXX2005.cs
- DataGridToolTip.cs
- MailMessage.cs
- OleDbTransaction.cs
- Parameter.cs
- XhtmlBasicPageAdapter.cs
- PropertyDescriptor.cs
- CriticalExceptions.cs
- EpmCustomContentDeSerializer.cs
- PartitionResolver.cs
- Viewport3DAutomationPeer.cs
- ServiceOperation.cs
- WorkflowItemPresenter.cs
- ClientConvert.cs
- HScrollBar.cs
- ScrollBarRenderer.cs
- EventRecordWrittenEventArgs.cs
- ThreadStaticAttribute.cs
- TextDecorationCollection.cs
- UDPClient.cs
- Delay.cs
- RectAnimationBase.cs
- _Win32.cs
- BufferCache.cs
- ClientApiGenerator.cs
- XmlUrlResolver.cs
- CodeComment.cs
- DodSequenceMerge.cs
- UserNamePasswordValidationMode.cs
- BitmapEffect.cs
- Timer.cs
- TerminateSequenceResponse.cs
- RuleElement.cs
- CalendarDateRange.cs
- TreeNodeEventArgs.cs
- Typography.cs
- ContainerParaClient.cs
- CLSCompliantAttribute.cs
- WeakReferenceKey.cs
- FtpCachePolicyElement.cs
- ComponentCodeDomSerializer.cs
- HandleCollector.cs
- KeyValueConfigurationCollection.cs
- DataGridViewRow.cs
- COM2EnumConverter.cs
- ClipboardData.cs
- MsmqIntegrationChannelFactory.cs
- AspNetHostingPermission.cs
- TreeView.cs
- MessageBox.cs
- AlphabeticalEnumConverter.cs
- FormViewInsertedEventArgs.cs
- IssuanceLicense.cs
- ToolboxComponentsCreatingEventArgs.cs
- XmlSchemaCollection.cs
- UnsafeNativeMethods.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- PassportIdentity.cs
- ListSortDescriptionCollection.cs
- Rect.cs
- HttpEncoder.cs
- PersonalizationStateQuery.cs
- ControlCachePolicy.cs
- xamlnodes.cs
- validationstate.cs
- Int16AnimationUsingKeyFrames.cs
- SqlBooleanizer.cs
- EditingCoordinator.cs
- SerializationException.cs
- LineServicesCallbacks.cs
- WmfPlaceableFileHeader.cs
- FunctionUpdateCommand.cs
- ValidationManager.cs
- KeyboardNavigation.cs
- Vector3DValueSerializer.cs
- XamlSerializer.cs
- Certificate.cs
- UnsafeMethods.cs
- JsonDataContract.cs
- CodeComment.cs
- NameValuePair.cs
- DrawingBrush.cs
- TemplateControlCodeDomTreeGenerator.cs
- PathSegment.cs
- UriSectionData.cs
- WorkflowValidationFailedException.cs
- GridView.cs
- Buffer.cs