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
- Selector.cs
- PseudoWebRequest.cs
- _StreamFramer.cs
- OleDbPropertySetGuid.cs
- TextServicesDisplayAttributePropertyRanges.cs
- QueryExpression.cs
- Matrix3D.cs
- MatrixStack.cs
- Int32CollectionValueSerializer.cs
- AspNetCacheProfileAttribute.cs
- StructuralType.cs
- ListArgumentProvider.cs
- Separator.cs
- QueryParameter.cs
- FullTrustAssembliesSection.cs
- PropertyGridEditorPart.cs
- CodeDefaultValueExpression.cs
- FileNotFoundException.cs
- CounterCreationDataConverter.cs
- DropShadowBitmapEffect.cs
- WindowsRichEditRange.cs
- UniqueIdentifierService.cs
- CuspData.cs
- UnitControl.cs
- StructuredTypeEmitter.cs
- Options.cs
- SafeHandle.cs
- ClientRuntimeConfig.cs
- BitmapCache.cs
- SoapHelper.cs
- SQLResource.cs
- ServerTooBusyException.cs
- HostingPreferredMapPath.cs
- IdentifierService.cs
- PropertyInformationCollection.cs
- CoTaskMemUnicodeSafeHandle.cs
- AxisAngleRotation3D.cs
- TextEditorLists.cs
- ProfileSettingsCollection.cs
- EnumValidator.cs
- MinMaxParagraphWidth.cs
- JsonByteArrayDataContract.cs
- SelectorAutomationPeer.cs
- ProcessModelSection.cs
- DbConnectionPoolIdentity.cs
- XslAst.cs
- AttributeInfo.cs
- TextElementCollection.cs
- UserNameSecurityToken.cs
- PublisherMembershipCondition.cs
- PhysicalAddress.cs
- EncoderExceptionFallback.cs
- SystemParameters.cs
- RtType.cs
- AppSettingsReader.cs
- ErrorReporting.cs
- SqlDataReader.cs
- MsmqHostedTransportConfiguration.cs
- LayoutUtils.cs
- CompoundFileStreamReference.cs
- sqlcontext.cs
- TemplateBaseAction.cs
- Light.cs
- EntityViewGenerator.cs
- DesignTimeTemplateParser.cs
- TypeUnloadedException.cs
- SizeFConverter.cs
- ContentWrapperAttribute.cs
- LocalClientSecuritySettings.cs
- SudsWriter.cs
- LinqDataSourceHelper.cs
- sitestring.cs
- NativeMethods.cs
- EventSinkHelperWriter.cs
- HttpGetClientProtocol.cs
- WindowsListViewSubItem.cs
- ImageCodecInfoPrivate.cs
- EntityDataSourceValidationException.cs
- IssuerInformation.cs
- HttpClientProtocol.cs
- XsltLibrary.cs
- RelationshipSet.cs
- DesignerSerializationVisibilityAttribute.cs
- RegexParser.cs
- DragEvent.cs
- GenerateScriptTypeAttribute.cs
- EventHandlersStore.cs
- TextEditorCharacters.cs
- EnvironmentPermission.cs
- SafeLibraryHandle.cs
- cache.cs
- InputBinding.cs
- FrameSecurityDescriptor.cs
- GenericTypeParameterBuilder.cs
- BindingList.cs
- XmlDataSource.cs
- DataControlFieldCell.cs
- COM2IPerPropertyBrowsingHandler.cs
- PlaceHolder.cs
- ZipIORawDataFileBlock.cs