Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / SecureProtocols / AuthenticatedStream.cs / 1 / 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;} } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FixedSOMImage.cs
- CompilationLock.cs
- SystemResources.cs
- Rotation3D.cs
- DataPager.cs
- TextPatternIdentifiers.cs
- MultiPropertyDescriptorGridEntry.cs
- RuntimeEnvironment.cs
- isolationinterop.cs
- MissingSatelliteAssemblyException.cs
- FixedDocumentPaginator.cs
- StreamAsIStream.cs
- selecteditemcollection.cs
- MemberInfoSerializationHolder.cs
- SafeEventLogWriteHandle.cs
- SuppressMergeCheckAttribute.cs
- BooleanStorage.cs
- ServiceContractViewControl.Designer.cs
- InvalidEnumArgumentException.cs
- PrimitiveCodeDomSerializer.cs
- PkcsMisc.cs
- SQLDecimalStorage.cs
- RecognitionEventArgs.cs
- TreeNodeMouseHoverEvent.cs
- WriteFileContext.cs
- SecurityException.cs
- SessionStateSection.cs
- SmtpTransport.cs
- XmlWrappingWriter.cs
- NamedObject.cs
- RunClient.cs
- SafeHandles.cs
- SettingsContext.cs
- Visual3D.cs
- SoapAttributeOverrides.cs
- ImplicitInputBrush.cs
- WSSecurityTokenSerializer.cs
- TypefaceCollection.cs
- HierarchicalDataBoundControl.cs
- WmpBitmapEncoder.cs
- ResourceDictionaryCollection.cs
- SafeSecurityHelper.cs
- UpdateTranslator.cs
- AnnouncementClient.cs
- OpenTypeLayoutCache.cs
- Light.cs
- DynamicResourceExtensionConverter.cs
- UIElementHelper.cs
- DataGridRelationshipRow.cs
- EncryptRequest.cs
- VBCodeProvider.cs
- ChtmlTextBoxAdapter.cs
- SmiGettersStream.cs
- Psha1DerivedKeyGeneratorHelper.cs
- GridViewColumn.cs
- TypeHelpers.cs
- GeneralTransform3D.cs
- XmlDictionaryReader.cs
- XmlCharacterData.cs
- EventLogInformation.cs
- DataControlHelper.cs
- Descriptor.cs
- ConfigurationLockCollection.cs
- ReachSerializer.cs
- MailWebEventProvider.cs
- TemplateComponentConnector.cs
- HttpRequestCacheValidator.cs
- DocumentViewerBaseAutomationPeer.cs
- PolyLineSegmentFigureLogic.cs
- ReaderOutput.cs
- CachedBitmap.cs
- EdmProperty.cs
- WinEventTracker.cs
- LinkedResource.cs
- SoapIncludeAttribute.cs
- DivideByZeroException.cs
- DataTrigger.cs
- DataMemberConverter.cs
- TextTabProperties.cs
- TypeSystem.cs
- GeometryDrawing.cs
- ButtonColumn.cs
- UserPersonalizationStateInfo.cs
- LayoutEvent.cs
- TextTreeExtractElementUndoUnit.cs
- ParameterBuilder.cs
- DecoratedNameAttribute.cs
- PropagatorResult.cs
- HttpCookieCollection.cs
- DefinitionUpdate.cs
- ToolStripContainer.cs
- ProfileBuildProvider.cs
- IntegerFacetDescriptionElement.cs
- NativeMethods.cs
- ClassGenerator.cs
- MonitoringDescriptionAttribute.cs
- TranslateTransform3D.cs
- CheckBoxPopupAdapter.cs
- ColumnMapVisitor.cs