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
- ToolBarButton.cs
- PerfService.cs
- Rule.cs
- Matrix3D.cs
- CanExecuteRoutedEventArgs.cs
- SynchronizationLockException.cs
- DataGridViewLinkColumn.cs
- DataTableTypeConverter.cs
- SecurityProtocol.cs
- AutoCompleteStringCollection.cs
- MetadataHelper.cs
- RectKeyFrameCollection.cs
- DataControlFieldCollection.cs
- TypeConverterAttribute.cs
- dataSvcMapFileLoader.cs
- ToolStripComboBox.cs
- BuildManager.cs
- EditorPart.cs
- DataGridViewSelectedCellCollection.cs
- PropertyInfoSet.cs
- DesignerSerializerAttribute.cs
- ContextMenu.cs
- QueryContinueDragEventArgs.cs
- TTSEvent.cs
- ScrollEvent.cs
- SettingsAttributeDictionary.cs
- Size3D.cs
- FormatSettings.cs
- PropertyPathWorker.cs
- Queue.cs
- XslCompiledTransform.cs
- Int32CollectionConverter.cs
- SelectionGlyph.cs
- XpsFontSerializationService.cs
- Int64.cs
- MailSettingsSection.cs
- VectorCollectionConverter.cs
- ListItem.cs
- SessionPageStateSection.cs
- DesignerValidatorAdapter.cs
- HttpCapabilitiesBase.cs
- linebase.cs
- TextViewSelectionProcessor.cs
- WindowsListViewItem.cs
- listitem.cs
- MonikerSyntaxException.cs
- XmlSiteMapProvider.cs
- SystemParameters.cs
- OleDbError.cs
- NumberAction.cs
- SchemaMerger.cs
- CookielessHelper.cs
- OutputScope.cs
- WindowInteractionStateTracker.cs
- MailAddressCollection.cs
- HighlightVisual.cs
- DriveInfo.cs
- CompositeFontFamily.cs
- BinaryUtilClasses.cs
- ChildDocumentBlock.cs
- SqlFormatter.cs
- TrackBarRenderer.cs
- ListDesigner.cs
- ShapeTypeface.cs
- DataFieldCollectionEditor.cs
- LightweightEntityWrapper.cs
- UnsafeNativeMethods.cs
- ReadOnlyDataSource.cs
- PageThemeParser.cs
- ThousandthOfEmRealDoubles.cs
- AutomationProperties.cs
- BuildProvider.cs
- Utils.cs
- ProfileManager.cs
- RequestCacheEntry.cs
- sqlcontext.cs
- AsyncOperationManager.cs
- EventSchemaTraceListener.cs
- DirectoryInfo.cs
- FunctionNode.cs
- WebBrowserNavigatingEventHandler.cs
- DataGridViewEditingControlShowingEventArgs.cs
- InvalidProgramException.cs
- M3DUtil.cs
- AQNBuilder.cs
- AttachedAnnotationChangedEventArgs.cs
- WorkflowViewManager.cs
- HMACMD5.cs
- SafeWaitHandle.cs
- SocketConnection.cs
- Completion.cs
- PersonalizationProviderHelper.cs
- StringSorter.cs
- XmlDictionaryReaderQuotas.cs
- LabelLiteral.cs
- XmlNamespaceManager.cs
- ProtectedConfiguration.cs
- OneWayChannelListener.cs
- PageContentAsyncResult.cs
- XmlWriterTraceListener.cs