Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Mail / SmtpReplyReader.cs / 1305376 / SmtpReplyReader.cs
namespace System.Net.Mail
{
using System;
using System.IO;
//streams are read only; return of 0 means end of server's reply
class SmtpReplyReader
{
SmtpReplyReaderFactory reader;
internal SmtpReplyReader(SmtpReplyReaderFactory reader)
{
this.reader = reader;
}
internal IAsyncResult BeginReadLines(AsyncCallback callback, object state)
{
return reader.BeginReadLines(this, callback, state);
}
internal IAsyncResult BeginReadLine(AsyncCallback callback, object state)
{
return reader.BeginReadLine(this, callback, state);
}
public void Close()
{
reader.Close(this);
}
internal LineInfo[] EndReadLines(IAsyncResult result)
{
return reader.EndReadLines(result);
}
internal LineInfo EndReadLine(IAsyncResult result)
{
return reader.EndReadLine(result);
}
internal LineInfo[] ReadLines()
{
return reader.ReadLines(this);
}
internal LineInfo ReadLine()
{
return reader.ReadLine(this);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
namespace System.Net.Mail
{
using System;
using System.IO;
//streams are read only; return of 0 means end of server's reply
class SmtpReplyReader
{
SmtpReplyReaderFactory reader;
internal SmtpReplyReader(SmtpReplyReaderFactory reader)
{
this.reader = reader;
}
internal IAsyncResult BeginReadLines(AsyncCallback callback, object state)
{
return reader.BeginReadLines(this, callback, state);
}
internal IAsyncResult BeginReadLine(AsyncCallback callback, object state)
{
return reader.BeginReadLine(this, callback, state);
}
public void Close()
{
reader.Close(this);
}
internal LineInfo[] EndReadLines(IAsyncResult result)
{
return reader.EndReadLines(result);
}
internal LineInfo EndReadLine(IAsyncResult result)
{
return reader.EndReadLine(result);
}
internal LineInfo[] ReadLines()
{
return reader.ReadLines(this);
}
internal LineInfo ReadLine()
{
return reader.ReadLine(this);
}
}
}
// 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
- AssemblyResourceLoader.cs
- MailAddress.cs
- DiagnosticTraceSource.cs
- remotingproxy.cs
- SemaphoreSecurity.cs
- ModelFunctionTypeElement.cs
- RecognizedAudio.cs
- EmptyQuery.cs
- InputScopeNameConverter.cs
- AddingNewEventArgs.cs
- CodePrimitiveExpression.cs
- HttpHandlerAction.cs
- RemotingHelper.cs
- ParameterBuilder.cs
- HitTestParameters.cs
- TraceSection.cs
- ConfigurationProviderException.cs
- DBDataPermission.cs
- CommandBindingCollection.cs
- CharKeyFrameCollection.cs
- ShaderRenderModeValidation.cs
- WebPartChrome.cs
- CodeGroup.cs
- X509ImageLogo.cs
- SamlSecurityTokenAuthenticator.cs
- SchemaAttDef.cs
- SignerInfo.cs
- InputLanguageCollection.cs
- XmlnsCache.cs
- ImageBrush.cs
- HorizontalAlignConverter.cs
- FSWPathEditor.cs
- XsdBuildProvider.cs
- XmlFormatExtensionPrefixAttribute.cs
- JoinGraph.cs
- Encoding.cs
- ExcCanonicalXml.cs
- PtsPage.cs
- Utils.cs
- NumberSubstitution.cs
- EventBookmark.cs
- List.cs
- Timer.cs
- WebPartZoneCollection.cs
- FormParameter.cs
- Transform.cs
- DocumentViewerAutomationPeer.cs
- WebPartZoneCollection.cs
- DbDataReader.cs
- GlobalEventManager.cs
- CryptoStream.cs
- EnumDataContract.cs
- odbcmetadatacolumnnames.cs
- ContentPropertyAttribute.cs
- WebPartConnectionCollection.cs
- ChangePassword.cs
- Size3DValueSerializer.cs
- ArgumentDesigner.xaml.cs
- CustomAttribute.cs
- StaticSiteMapProvider.cs
- ContainerFilterService.cs
- Point3DKeyFrameCollection.cs
- ResourceDictionary.cs
- LightweightCodeGenerator.cs
- SectionRecord.cs
- ImageSourceConverter.cs
- InvalidDataException.cs
- RunWorkerCompletedEventArgs.cs
- SystemParameters.cs
- MediaSystem.cs
- HttpDebugHandler.cs
- ValueTable.cs
- AddressUtility.cs
- FusionWrap.cs
- SqlWorkflowInstanceStore.cs
- StringAnimationUsingKeyFrames.cs
- GrammarBuilderDictation.cs
- SharedStatics.cs
- ValueType.cs
- DataGridViewTopRowAccessibleObject.cs
- LinkLabel.cs
- FontConverter.cs
- ClientCultureInfo.cs
- PeerResolverSettings.cs
- RadioButtonPopupAdapter.cs
- CompilationSection.cs
- ExpandableObjectConverter.cs
- StretchValidation.cs
- DbConnectionClosed.cs
- CodeAttributeDeclarationCollection.cs
- RemotingService.cs
- ServiceModelConfigurationSectionCollection.cs
- DataGridViewLayoutData.cs
- PartialTrustVisibleAssembly.cs
- ScriptDescriptor.cs
- TextEffect.cs
- NamespaceCollection.cs
- CustomWebEventKey.cs
- ISAPIRuntime.cs
- DataBoundControl.cs