Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / SecureProtocols / AuthenticatedStream.cs / 1305376 / AuthenticatedStream.cs
/*++ Copyright (c) 2003 Microsoft Corporation Module Name: AuthenticatedStream.cs Abstract: A public contact for a base abstract authenticated stream. Author: Alexei Vopilov Sept 28-2003 Revision History: --*/ namespace System.Net.Security { using System; using System.IO; using System.Threading; using System.Security.Permissions; using System.Security.Principal; public abstract class AuthenticatedStream: Stream { private Stream _InnerStream; private bool _LeaveStreamOpen; protected AuthenticatedStream(Stream innerStream, bool leaveInnerStreamOpen) { if (innerStream == null || innerStream == Stream.Null) { throw new ArgumentNullException("innerStream"); } if (!innerStream.CanRead || !innerStream.CanWrite) { throw new ArgumentException(SR.GetString(SR.net_io_must_be_rw_stream), "innerStream"); } _InnerStream = innerStream; _LeaveStreamOpen = leaveInnerStreamOpen; } public bool LeaveInnerStreamOpen { get { return _LeaveStreamOpen; } } // // protected Stream InnerStream { get { return _InnerStream; } } // // protected override void Dispose(bool disposing) { #if DEBUG using (GlobalLog.SetThreadKind(ThreadKinds.User)) { #endif try { if (disposing) { if (_LeaveStreamOpen) { _InnerStream.Flush(); } else { _InnerStream.Close(); } } } finally { base.Dispose(disposing); } #if DEBUG } #endif } // // General informational properties // public abstract bool IsAuthenticated {get;} public abstract bool IsMutuallyAuthenticated {get;} public abstract bool IsEncrypted {get;} public abstract bool IsSigned {get;} public abstract bool IsServer {get;} } } // 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
- DynamicDataExtensions.cs
- BulletChrome.cs
- Transform.cs
- RelationshipFixer.cs
- Int64Storage.cs
- LinqDataSourceUpdateEventArgs.cs
- KeyTime.cs
- EntityDataSourceSelectedEventArgs.cs
- DataBindingHandlerAttribute.cs
- WmlControlAdapter.cs
- ImportContext.cs
- GridView.cs
- StringToken.cs
- OpCodes.cs
- QilExpression.cs
- HttpTransportSecurity.cs
- ChannelBinding.cs
- TextRenderer.cs
- XmlQueryRuntime.cs
- WebPartPersonalization.cs
- NameTable.cs
- CannotUnloadAppDomainException.cs
- CodeAttributeArgumentCollection.cs
- FontWeight.cs
- Attribute.cs
- SqlRecordBuffer.cs
- CheckedPointers.cs
- AncestorChangedEventArgs.cs
- HwndPanningFeedback.cs
- TypedTableHandler.cs
- MsdtcClusterUtils.cs
- DefaultPrintController.cs
- DetailsViewUpdateEventArgs.cs
- SiteMapPath.cs
- CodeGotoStatement.cs
- ZipFileInfoCollection.cs
- WindowsFormsEditorServiceHelper.cs
- DataBoundControlHelper.cs
- ObjectDataSourceDesigner.cs
- ConfigurationCollectionAttribute.cs
- ProcessingInstructionAction.cs
- ChannelServices.cs
- AssemblySettingAttributes.cs
- SectionInput.cs
- WorkflowDefinitionDispenser.cs
- CommonDialog.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- InvalidEnumArgumentException.cs
- TextParaLineResult.cs
- DesignerRegionCollection.cs
- MethodCallTranslator.cs
- ConfigXmlDocument.cs
- ProfessionalColors.cs
- ProvidePropertyAttribute.cs
- ConfigXmlComment.cs
- ValidatingPropertiesEventArgs.cs
- BuildResultCache.cs
- ButtonFlatAdapter.cs
- AssociationType.cs
- WebHttpBehavior.cs
- XsltException.cs
- ItemsControlAutomationPeer.cs
- RegistryKey.cs
- HttpAsyncResult.cs
- ViewValidator.cs
- BridgeDataReader.cs
- XamlReaderHelper.cs
- _WinHttpWebProxyDataBuilder.cs
- Base64Encoder.cs
- CreateUserWizard.cs
- StaticDataManager.cs
- LinkLabel.cs
- TcpChannelFactory.cs
- QuadraticBezierSegment.cs
- XamlPoint3DCollectionSerializer.cs
- TrustLevelCollection.cs
- HTMLTagNameToTypeMapper.cs
- ClientTargetCollection.cs
- SelectionProcessor.cs
- CellLabel.cs
- GridProviderWrapper.cs
- SHA384.cs
- QueryConverter.cs
- GcSettings.cs
- XslTransform.cs
- DataGridViewIntLinkedList.cs
- ChtmlTextWriter.cs
- Helper.cs
- CrossAppDomainChannel.cs
- DataGridItemEventArgs.cs
- DataGridColumnStyleMappingNameEditor.cs
- DetailsViewInsertEventArgs.cs
- _SpnDictionary.cs
- DataGridDesigner.cs
- DialogWindow.cs
- XmlSchemaSimpleContent.cs
- RadioButton.cs
- QilCloneVisitor.cs
- Shape.cs
- StylusButtonCollection.cs