Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / SMSvcHost / System / ServiceModel / Activation / ListenerSingletonConnectionReader.cs / 1 / ListenerSingletonConnectionReader.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Activation { using System.ServiceModel.Channels; class ListenerSingletonConnectionReader : DupHandleConnectionReader { ServerSingletonDecoder decoder; public ListenerSingletonConnectionReader(IConnection connection, ItemDequeuedCallback connectionDequeuedCallback, TransportType transportType, long streamPosition, int offset, int size, ConnectionClosedCallback closedCallback, ViaDecodedCallback viaDecodedCallback) : base(connection, connectionDequeuedCallback, transportType, offset, size, closedCallback, viaDecodedCallback) { this.decoder = new ServerSingletonDecoder(streamPosition, ListenerConstants.MaxUriSize, ListenerConstants.SharedMaxContentTypeSize); } protected override bool CanDupHandle(out Uri via) { if (decoder.CurrentState == ServerSingletonDecoder.State.ReadingContentTypeRecord) { via = decoder.Via; return true; } else { via = null; return false; } } protected override int Decode(byte[] buffer, int offset, int size) { return decoder.Decode(buffer, offset, size); } protected override Exception CreatePrematureEOFException() { return decoder.CreatePrematureEOFException(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BindingNavigatorDesigner.cs
- Rect.cs
- ViewLoader.cs
- Base64Stream.cs
- DataGridViewCellStateChangedEventArgs.cs
- IndividualDeviceConfig.cs
- SqlCacheDependencySection.cs
- SqlDataSourceCommandEventArgs.cs
- HwndSource.cs
- SmtpReplyReader.cs
- BitmapCodecInfoInternal.cs
- BufferedGraphicsManager.cs
- WindowsToolbarAsMenu.cs
- DocobjHost.cs
- DbConnectionOptions.cs
- Helper.cs
- Variant.cs
- Attributes.cs
- KnownColorTable.cs
- XmlILTrace.cs
- CodeDefaultValueExpression.cs
- grammarelement.cs
- DataGridView.cs
- CacheChildrenQuery.cs
- WebFormDesignerActionService.cs
- QilLoop.cs
- MaterialGroup.cs
- PasswordDeriveBytes.cs
- DataRelationPropertyDescriptor.cs
- DockAndAnchorLayout.cs
- MenuItem.cs
- BaseCodePageEncoding.cs
- PartitionedStream.cs
- X509Utils.cs
- WindowsProgressbar.cs
- Dispatcher.cs
- LaxModeSecurityHeaderElementInferenceEngine.cs
- HttpInputStream.cs
- FormClosingEvent.cs
- AgileSafeNativeMemoryHandle.cs
- PropertyDescriptorGridEntry.cs
- DurableErrorHandler.cs
- BadImageFormatException.cs
- OutputCacheSettings.cs
- COM2Enum.cs
- WebScriptMetadataMessageEncoderFactory.cs
- DataSet.cs
- BrushMappingModeValidation.cs
- FigureParagraph.cs
- PersonalizationStateQuery.cs
- TextEditorSpelling.cs
- Constraint.cs
- NavigationWindowAutomationPeer.cs
- HttpProfileGroupBase.cs
- PartialTrustVisibleAssembliesSection.cs
- RoutedEventArgs.cs
- WebPartManager.cs
- WindowsFormsSynchronizationContext.cs
- PerformanceCounterPermissionAttribute.cs
- Positioning.cs
- ResourceDictionary.cs
- DataRowComparer.cs
- UserNamePasswordValidator.cs
- clipboard.cs
- List.cs
- RootContext.cs
- ConsoleKeyInfo.cs
- SimpleType.cs
- BoundColumn.cs
- TreeNodeBindingDepthConverter.cs
- XmlILOptimizerVisitor.cs
- XmlNodeReader.cs
- ToolStripItemRenderEventArgs.cs
- ListenerUnsafeNativeMethods.cs
- RepeatButton.cs
- HeaderedItemsControl.cs
- Span.cs
- ellipse.cs
- BodyWriter.cs
- SqlDataSourceCommandParser.cs
- XmlRawWriterWrapper.cs
- TypedDataSetSchemaImporterExtension.cs
- OrderedDictionary.cs
- PrintControllerWithStatusDialog.cs
- _BasicClient.cs
- _HeaderInfoTable.cs
- VisualBrush.cs
- MiniModule.cs
- ChangeToolStripParentVerb.cs
- DataTablePropertyDescriptor.cs
- ImportCatalogPart.cs
- AuthenticatedStream.cs
- IisNotInstalledException.cs
- InputElement.cs
- MultiBinding.cs
- SynchronizationContextHelper.cs
- Matrix.cs
- transactioncontext.cs
- SiteMapNodeItemEventArgs.cs
- GenerateTemporaryTargetAssembly.cs