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
- PointAnimationBase.cs
- DisableDpiAwarenessAttribute.cs
- ExpandCollapseProviderWrapper.cs
- FeedUtils.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- MimePart.cs
- CompressedStack.cs
- XmlComplianceUtil.cs
- Win32Native.cs
- UndirectedGraph.cs
- PkcsMisc.cs
- CompilationRelaxations.cs
- TabPanel.cs
- GenericTypeParameterBuilder.cs
- ToolStripDropDownClosedEventArgs.cs
- HtmlLink.cs
- EventSetter.cs
- XmlSchemaObjectCollection.cs
- DataList.cs
- _Win32.cs
- SafeTokenHandle.cs
- Section.cs
- FontFamily.cs
- FocusChangedEventArgs.cs
- TreeNodeCollectionEditor.cs
- SiteMapDataSourceView.cs
- HttpWebResponse.cs
- PriorityRange.cs
- HMAC.cs
- AttachmentService.cs
- ContentType.cs
- TextLine.cs
- SrgsOneOf.cs
- TypePresenter.xaml.cs
- Int64AnimationBase.cs
- ToolStripDropDownClosingEventArgs.cs
- ProfileService.cs
- OciHandle.cs
- OnOperation.cs
- InitializerFacet.cs
- RTLAwareMessageBox.cs
- ResourceProperty.cs
- AssemblyCollection.cs
- HostedTcpTransportManager.cs
- SpecialFolderEnumConverter.cs
- CachedFontFace.cs
- FlowLayoutSettings.cs
- BrowserDefinitionCollection.cs
- RowSpanVector.cs
- BinaryObjectInfo.cs
- MsmqIntegrationChannelListener.cs
- DbParameterCollection.cs
- SpotLight.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- RTLAwareMessageBox.cs
- AccessKeyManager.cs
- DllNotFoundException.cs
- TargetInvocationException.cs
- OleDbRowUpdatedEvent.cs
- PropertyTabChangedEvent.cs
- OleCmdHelper.cs
- QueryTaskGroupState.cs
- DesignerTransaction.cs
- RepeatBehavior.cs
- CellPartitioner.cs
- SqlDataSourceCommandEventArgs.cs
- PlatformNotSupportedException.cs
- RelationshipDetailsCollection.cs
- ImageConverter.cs
- TreeViewDesigner.cs
- MsmqIntegrationProcessProtocolHandler.cs
- RootContext.cs
- XmlDownloadManager.cs
- OrCondition.cs
- WorkerRequest.cs
- OdbcConnectionFactory.cs
- PartitionResolver.cs
- ServiceProviders.cs
- StrokeNode.cs
- ConfigurationElementProperty.cs
- DecimalConstantAttribute.cs
- DocumentApplicationJournalEntry.cs
- XmlnsDictionary.cs
- DiscoveryMessageSequence.cs
- ElementHostPropertyMap.cs
- StorageComplexPropertyMapping.cs
- DescendentsWalker.cs
- PasswordRecoveryAutoFormat.cs
- Msec.cs
- ComboBoxRenderer.cs
- DesignOnlyAttribute.cs
- IntegerValidatorAttribute.cs
- ToolStripItemTextRenderEventArgs.cs
- ControllableStoryboardAction.cs
- login.cs
- WCFServiceClientProxyGenerator.cs
- CryptoKeySecurity.cs
- RotateTransform3D.cs
- SystemColors.cs
- complextypematerializer.cs