Code:
/ FX-1434 / FX-1434 / 1.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
- ChildTable.cs
- BindableAttribute.cs
- HttpPostClientProtocol.cs
- ScriptRegistrationManager.cs
- XmlMapping.cs
- WindowsSidIdentity.cs
- NativeMethods.cs
- TextRangeEditTables.cs
- ReliabilityContractAttribute.cs
- HostSecurityManager.cs
- UpdateProgress.cs
- FrugalList.cs
- GrabHandleGlyph.cs
- IdentityReference.cs
- RightsManagementEncryptedStream.cs
- mactripleDES.cs
- InputBindingCollection.cs
- ListControlConvertEventArgs.cs
- ListViewCommandEventArgs.cs
- SqlPersonalizationProvider.cs
- ProxyDataContractResolver.cs
- XmlDocumentFieldSchema.cs
- RadioButtonList.cs
- CopyAction.cs
- WebRequest.cs
- NameSpaceExtractor.cs
- PageContent.cs
- StoryFragments.cs
- DataSvcMapFile.cs
- VirtualizedCellInfoCollection.cs
- TemplateControlParser.cs
- DeviceOverridableAttribute.cs
- XmlSerializationReader.cs
- XmlCodeExporter.cs
- Brush.cs
- CorrelationManager.cs
- WebReferencesBuildProvider.cs
- Pointer.cs
- ExclusiveHandle.cs
- XPathNodePointer.cs
- KnownBoxes.cs
- ParameterBuilder.cs
- CellIdBoolean.cs
- WindowsFormsHelpers.cs
- X509CertificateCollection.cs
- XmlnsCompatibleWithAttribute.cs
- RenderContext.cs
- FontStyleConverter.cs
- SafeThemeHandle.cs
- AttributedMetaModel.cs
- IconBitmapDecoder.cs
- TypeNameConverter.cs
- FixedSOMTable.cs
- DispatchWrapper.cs
- BinaryObjectInfo.cs
- AnnotationAuthorChangedEventArgs.cs
- WebEvents.cs
- TransformPattern.cs
- HwndStylusInputProvider.cs
- CreateRefExpr.cs
- DecimalAnimationUsingKeyFrames.cs
- remotingproxy.cs
- TextElement.cs
- XmlParser.cs
- KeyValuePairs.cs
- SupportingTokenDuplexChannel.cs
- QueuePropertyVariants.cs
- XmlSchemaCollection.cs
- SqlGatherConsumedAliases.cs
- SiteMapNodeCollection.cs
- TrackingStringDictionary.cs
- SqlInternalConnectionSmi.cs
- DeploymentSectionCache.cs
- SimpleParser.cs
- AutomationTextAttribute.cs
- AttachedPropertyMethodSelector.cs
- WebFormDesignerActionService.cs
- XmlHierarchicalDataSourceView.cs
- WsdlBuildProvider.cs
- ADConnectionHelper.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- ClientTargetCollection.cs
- DesignerValidatorAdapter.cs
- EntityProviderFactory.cs
- HttpCachePolicyElement.cs
- TargetPerspective.cs
- WindowsTreeView.cs
- EntityClientCacheKey.cs
- GridViewSortEventArgs.cs
- PassportAuthenticationModule.cs
- WebPartConnectionsCancelVerb.cs
- BitmapEffectState.cs
- HttpHandlerAction.cs
- VirtualPathData.cs
- TypeBuilderInstantiation.cs
- XmlQueryContext.cs
- DelegateHelpers.Generated.cs
- XmlNotation.cs
- RepeaterItemCollection.cs
- GridItemPattern.cs