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
- WindowsFormsDesignerOptionService.cs
- XXXOnTypeBuilderInstantiation.cs
- ViewGenerator.cs
- TypeUtils.cs
- HtmlUtf8RawTextWriter.cs
- FastEncoder.cs
- ChannelEndpointElementCollection.cs
- TypeContext.cs
- SkewTransform.cs
- RelationshipConstraintValidator.cs
- SQLGuidStorage.cs
- StatusBar.cs
- GatewayIPAddressInformationCollection.cs
- SessionState.cs
- ReliabilityContractAttribute.cs
- StaticExtensionConverter.cs
- URL.cs
- IfAction.cs
- IxmlLineInfo.cs
- ListViewCancelEventArgs.cs
- ColumnBinding.cs
- TemplateXamlTreeBuilder.cs
- ManagementQuery.cs
- XamlHostingConfiguration.cs
- XmlArrayItemAttributes.cs
- SystemFonts.cs
- AsyncStreamReader.cs
- WebResourceUtil.cs
- NamespaceTable.cs
- MulticastIPAddressInformationCollection.cs
- SqlProfileProvider.cs
- Evidence.cs
- DetailsViewInsertEventArgs.cs
- infer.cs
- Mutex.cs
- ObjectNotFoundException.cs
- ConfigXmlElement.cs
- ControllableStoryboardAction.cs
- TimelineCollection.cs
- OracleRowUpdatingEventArgs.cs
- _SingleItemRequestCache.cs
- TypedReference.cs
- RenderCapability.cs
- SynchronizedDispatch.cs
- HatchBrush.cs
- ValidatorCollection.cs
- RijndaelManaged.cs
- TextSimpleMarkerProperties.cs
- DataBinder.cs
- WebColorConverter.cs
- ManagementEventArgs.cs
- PropertyChangeTracker.cs
- DataConnectionHelper.cs
- CommonRemoteMemoryBlock.cs
- XmlNode.cs
- HttpListener.cs
- SystemNetworkInterface.cs
- Point3DCollection.cs
- Rotation3DAnimation.cs
- BlockUIContainer.cs
- CompositeDataBoundControl.cs
- Wildcard.cs
- XmlNodeList.cs
- VerbConverter.cs
- XPathSelectionIterator.cs
- WebHttpSecurityElement.cs
- ImageMap.cs
- ReferentialConstraint.cs
- DispatcherHooks.cs
- DriveNotFoundException.cs
- UIElementAutomationPeer.cs
- PersonalizationStateQuery.cs
- AdapterDictionary.cs
- ComPlusThreadInitializer.cs
- InputMethodStateChangeEventArgs.cs
- RecognizedAudio.cs
- ComPlusAuthorization.cs
- CloudCollection.cs
- SessionStateUtil.cs
- WorkflowEventArgs.cs
- SupportsEventValidationAttribute.cs
- SoundPlayer.cs
- PageAsyncTaskManager.cs
- NavigationProperty.cs
- ItemCheckEvent.cs
- SigningCredentials.cs
- TraceListener.cs
- DataRecordObjectView.cs
- TemplateColumn.cs
- SqlMethods.cs
- TCPClient.cs
- TransactionManager.cs
- MailMessageEventArgs.cs
- ApplyImportsAction.cs
- ElementHostPropertyMap.cs
- TextSearch.cs
- OleDragDropHandler.cs
- VerificationAttribute.cs
- HtmlImageAdapter.cs
- BamlWriter.cs