Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Channels / DelegatingStream.cs / 1 / DelegatingStream.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Channels { using System.IO; // Base Stream that delegates all its methods to another Stream. abstract class DelegatingStream : Stream { Stream stream; protected DelegatingStream(Stream stream) { if (stream == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("stream"); } this.stream = stream; } protected Stream BaseStream { get { return stream; } } public override bool CanRead { get { return stream.CanRead; } } public override bool CanSeek { get { return stream.CanSeek; } } public override bool CanTimeout { get { return stream.CanTimeout; } } public override bool CanWrite { get { return stream.CanWrite; } } public override long Length { get { return stream.Length; } } public override long Position { get { return stream.Position; } set { stream.Position = value; } } public override int ReadTimeout { get { return stream.ReadTimeout; } set { stream.ReadTimeout = value; } } public override int WriteTimeout { get { return stream.WriteTimeout; } set { stream.WriteTimeout = value; } } public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, object state) { return stream.BeginRead(buffer, offset, count, callback, state); } public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, object state) { return stream.BeginWrite(buffer, offset, count, callback, state); } public override void Close() { stream.Close(); } public override int EndRead(IAsyncResult result) { return stream.EndRead(result); } public override void EndWrite(IAsyncResult result) { stream.EndWrite(result); } public override void Flush() { stream.Flush(); } public override int Read(byte[] buffer, int offset, int count) { return stream.Read(buffer, offset, count); } public override int ReadByte() { return stream.ReadByte(); } public override long Seek(long offset, SeekOrigin origin) { return stream.Seek(offset, origin); } public override void SetLength(long value) { stream.SetLength(value); } public override void Write(byte[] buffer, int offset, int count) { stream.Write(buffer, offset, count); } public override void WriteByte(byte value) { stream.WriteByte(value); } } } // 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
- DataGridViewImageColumn.cs
- AuthenticationModuleElement.cs
- CqlLexer.cs
- WebErrorHandler.cs
- JpegBitmapDecoder.cs
- SqlConnectionHelper.cs
- ValueTable.cs
- coordinator.cs
- SortedSetDebugView.cs
- StorageMappingFragment.cs
- DataTableTypeConverter.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ProxyAttribute.cs
- ExecutionEngineException.cs
- SqlReferenceCollection.cs
- MatrixAnimationBase.cs
- ListViewGroupConverter.cs
- SystemResources.cs
- RegionIterator.cs
- ToolStripInSituService.cs
- Panel.cs
- FlowDocumentPage.cs
- DesignerOptions.cs
- XmlIterators.cs
- CodeMethodReturnStatement.cs
- PenThreadPool.cs
- URLString.cs
- ProfileGroupSettings.cs
- ServiceBusyException.cs
- Attributes.cs
- InfoCardPolicy.cs
- AppDomainGrammarProxy.cs
- IpcManager.cs
- CmsInterop.cs
- LineProperties.cs
- LinqDataSourceDeleteEventArgs.cs
- OleDbPropertySetGuid.cs
- ApplyImportsAction.cs
- basecomparevalidator.cs
- CodeNamespace.cs
- XmlTypeAttribute.cs
- StylusPointDescription.cs
- ExtensionsSection.cs
- SQLBinaryStorage.cs
- CharEnumerator.cs
- HMACRIPEMD160.cs
- Rect3D.cs
- GridViewUpdatedEventArgs.cs
- File.cs
- SemanticResolver.cs
- TimeSpan.cs
- EncryptedKeyIdentifierClause.cs
- ProtectedConfiguration.cs
- ImportContext.cs
- FlowSwitchLink.cs
- TargetConverter.cs
- WebRequest.cs
- VersionPair.cs
- UInt64Converter.cs
- SafeNativeHandle.cs
- ValidationErrorInfo.cs
- LineVisual.cs
- TransactionScope.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- TdsParameterSetter.cs
- CacheManager.cs
- TextEditorSpelling.cs
- httpapplicationstate.cs
- CommunicationObjectFaultedException.cs
- X509Utils.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- _SslSessionsCache.cs
- ColorConvertedBitmap.cs
- SemanticResultValue.cs
- RawStylusInputCustomDataList.cs
- Permission.cs
- StrokeIntersection.cs
- MultiView.cs
- ColorInterpolationModeValidation.cs
- WindowsUpDown.cs
- IndentedWriter.cs
- AggregateNode.cs
- GregorianCalendar.cs
- InstanceDataCollectionCollection.cs
- XmlRawWriter.cs
- MenuItemStyleCollectionEditor.cs
- TabControl.cs
- ArithmeticException.cs
- CallbackDebugBehavior.cs
- DotExpr.cs
- InputLanguageEventArgs.cs
- BackStopAuthenticationModule.cs
- PasswordBoxAutomationPeer.cs
- COSERVERINFO.cs
- TextServicesPropertyRanges.cs
- MultipleViewProviderWrapper.cs
- BindingMAnagerBase.cs
- PerformanceCounterCategory.cs
- XmlDocument.cs
- KeyPressEvent.cs