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
- TreeNodeBinding.cs
- HttpListener.cs
- RegexCharClass.cs
- DesignerActionMethodItem.cs
- RulePatternOps.cs
- ContainerControlDesigner.cs
- NativeMethods.cs
- CreateUserErrorEventArgs.cs
- BevelBitmapEffect.cs
- EndpointAddressProcessor.cs
- listitem.cs
- AccessText.cs
- SemaphoreFullException.cs
- XmlSchemaValidationException.cs
- PipelineModuleStepContainer.cs
- StoreContentChangedEventArgs.cs
- DataGridViewHitTestInfo.cs
- ConfigurationSectionCollection.cs
- SqlHelper.cs
- ToolStripComboBox.cs
- CustomErrorsSection.cs
- WizardPanelChangingEventArgs.cs
- SystemKeyConverter.cs
- WindowsSolidBrush.cs
- DispatcherHooks.cs
- InternalConfigSettingsFactory.cs
- WebScriptClientGenerator.cs
- UnsupportedPolicyOptionsException.cs
- InlinedAggregationOperatorEnumerator.cs
- ConfigurationSectionGroup.cs
- HttpCacheVary.cs
- parserscommon.cs
- WindowInteractionStateTracker.cs
- Mouse.cs
- StorageEndPropertyMapping.cs
- RenameRuleObjectDialog.cs
- Bitmap.cs
- AuthenticationSection.cs
- NodeInfo.cs
- OracleTransaction.cs
- Attribute.cs
- UpdatePanel.cs
- Token.cs
- DataGridViewToolTip.cs
- DataGridViewColumnHeaderCell.cs
- ClientSettings.cs
- Registry.cs
- GestureRecognitionResult.cs
- SiteIdentityPermission.cs
- HtmlTernaryTree.cs
- StrongNameKeyPair.cs
- DockProviderWrapper.cs
- SplineKeyFrames.cs
- _CookieModule.cs
- DataGridViewCellValueEventArgs.cs
- PaperSource.cs
- CodeDomDesignerLoader.cs
- TextMetrics.cs
- SoapTypeAttribute.cs
- WebPartHeaderCloseVerb.cs
- EtwTrackingBehavior.cs
- XmlSchemaType.cs
- PrePostDescendentsWalker.cs
- CollectionsUtil.cs
- DesigntimeLicenseContext.cs
- FromReply.cs
- SqlError.cs
- ClassHandlersStore.cs
- UnsafeNativeMethodsPenimc.cs
- SID.cs
- RelatedView.cs
- SystemParameters.cs
- TextContainerChangeEventArgs.cs
- SiblingIterators.cs
- PermissionToken.cs
- OptimalBreakSession.cs
- SqlDataSourceAdvancedOptionsForm.cs
- SafeHandles.cs
- XmlCompatibilityReader.cs
- PolyLineSegment.cs
- ApplicationFileCodeDomTreeGenerator.cs
- Base64Encoder.cs
- HttpModulesSection.cs
- XmlDomTextWriter.cs
- base64Transforms.cs
- DataServiceRequestOfT.cs
- UnauthorizedWebPart.cs
- Rect.cs
- HwndSourceParameters.cs
- TransformerInfoCollection.cs
- EntitySqlQueryBuilder.cs
- ConsumerConnectionPoint.cs
- ToolStripContainer.cs
- configsystem.cs
- Trace.cs
- SystemNetHelpers.cs
- DoubleCollectionValueSerializer.cs
- MappingSource.cs
- HMACSHA1.cs
- MouseCaptureWithinProperty.cs