Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / Remoting / DispatchChannelSink.cs / 1305376 / 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; using System.Diagnostics.Contracts; namespace System.Runtime.Remoting.Channels { internal class DispatchChannelSinkProvider : IServerChannelSinkProvider { internal DispatchChannelSinkProvider() { } // DispatchChannelSinkProvider [System.Security.SecurityCritical] // auto-generated public void GetChannelData(IChannelDataStore channelData) { } [System.Security.SecurityCritical] // auto-generated public IServerChannelSink CreateSink(IChannelReceiver channel) { return new DispatchChannelSink(); } public IServerChannelSinkProvider Next { [System.Security.SecurityCritical] // auto-generated get { return null; } [System.Security.SecurityCritical] // auto-generated set { throw new NotSupportedException(); } } } // class DispatchChannelSinkProvider internal class DispatchChannelSink : IServerChannelSink { internal DispatchChannelSink() { } // DispatchChannelSink [System.Security.SecurityCritical] // auto-generated 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")); } Contract.EndContractBlock(); // 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 [System.Security.SecurityCritical] // auto-generated 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 [System.Security.SecurityCritical] // auto-generated 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 { [System.Security.SecurityCritical] // auto-generated get { return null; } } public IDictionary Properties { [System.Security.SecurityCritical] // auto-generated get { return null; } } } // class DispatchChannelSink } // namespace System.Runtime.Remoting.Channels // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SessionPageStatePersister.cs
- ConstructorExpr.cs
- HttpModuleCollection.cs
- FixedHighlight.cs
- StrokeSerializer.cs
- CanExecuteRoutedEventArgs.cs
- AsymmetricSignatureDeformatter.cs
- SystemResourceKey.cs
- SchemaCollectionCompiler.cs
- XmlSchemaSet.cs
- CommandPlan.cs
- SystemNetworkInterface.cs
- DataGridViewLinkCell.cs
- HttpStreamXmlDictionaryWriter.cs
- StylusPointPropertyUnit.cs
- DSASignatureDeformatter.cs
- PkcsMisc.cs
- TemplateXamlTreeBuilder.cs
- TableRowGroup.cs
- LogicalExpr.cs
- ZipFileInfoCollection.cs
- TypeBuilderInstantiation.cs
- QilChoice.cs
- PublisherIdentityPermission.cs
- CellTreeNodeVisitors.cs
- ObjectSecurity.cs
- ButtonBase.cs
- SmtpTransport.cs
- TypeReference.cs
- CheckBox.cs
- ClearCollection.cs
- BindUriHelper.cs
- StrongNameHelpers.cs
- AssemblyCollection.cs
- ConcurrentBag.cs
- LongValidator.cs
- TokenBasedSetEnumerator.cs
- VectorValueSerializer.cs
- PathSegment.cs
- DesignerSerializationOptionsAttribute.cs
- SchemeSettingElement.cs
- VirtualizedContainerService.cs
- SafeRegistryHandle.cs
- MissingManifestResourceException.cs
- FileChangesMonitor.cs
- Selection.cs
- DbProviderFactory.cs
- TextServicesCompartment.cs
- Base64Decoder.cs
- StyleCollection.cs
- Compensation.cs
- ContainerParaClient.cs
- FullTextState.cs
- TransformerConfigurationWizardBase.cs
- TrackingValidationObjectDictionary.cs
- SizeChangedInfo.cs
- TileBrush.cs
- DataGridViewComboBoxEditingControl.cs
- FrameworkContentElementAutomationPeer.cs
- GenericRootAutomationPeer.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- DataGridViewRowCancelEventArgs.cs
- IssuanceLicense.cs
- ContractUtils.cs
- GridEntry.cs
- _SafeNetHandles.cs
- ECDiffieHellmanPublicKey.cs
- ContextMenu.cs
- CodeMethodInvokeExpression.cs
- LayoutTableCell.cs
- PersonalizationProviderHelper.cs
- QueryAccessibilityHelpEvent.cs
- MarshalByValueComponent.cs
- DiscoveryUtility.cs
- AppLevelCompilationSectionCache.cs
- NetworkStream.cs
- CellQuery.cs
- ContextMenuAutomationPeer.cs
- ValidationErrorInfo.cs
- SignatureHelper.cs
- CustomErrorCollection.cs
- Int32RectConverter.cs
- RemotingException.cs
- DataGridViewColumnHeaderCell.cs
- InheritedPropertyChangedEventArgs.cs
- Logging.cs
- CustomBindingElement.cs
- UriParserTemplates.cs
- XmlAggregates.cs
- NameValueSectionHandler.cs
- Source.cs
- EventPropertyMap.cs
- CategoryValueConverter.cs
- TokenFactoryFactory.cs
- UniqueEventHelper.cs
- SqlHelper.cs
- OleAutBinder.cs
- _ContextAwareResult.cs
- Set.cs
- X509InitiatorCertificateClientElement.cs