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
- WebPartMovingEventArgs.cs
- WebChannelFactory.cs
- Typography.cs
- objectresult_tresulttype.cs
- CompilerLocalReference.cs
- DbProviderFactories.cs
- DependencyStoreSurrogate.cs
- bindurihelper.cs
- ListViewGroupConverter.cs
- EntityReference.cs
- SettingsPropertyCollection.cs
- ColumnMapCopier.cs
- ApplicationActivator.cs
- KeysConverter.cs
- UserControlBuildProvider.cs
- StrongNameKeyPair.cs
- XmlSignificantWhitespace.cs
- CellTreeNode.cs
- HttpListenerException.cs
- ProcessInfo.cs
- ToolStripArrowRenderEventArgs.cs
- ControlDesigner.cs
- DefaultAsyncDataDispatcher.cs
- ExceptionRoutedEventArgs.cs
- ServiceModelSectionGroup.cs
- EventHandlersDesigner.cs
- PersonalizationState.cs
- Knowncolors.cs
- DateTimeConstantAttribute.cs
- ParserExtension.cs
- SelectionProviderWrapper.cs
- SmtpDateTime.cs
- EqualityComparer.cs
- AttributeCollection.cs
- TypeDescriptor.cs
- NegationPusher.cs
- HtmlShim.cs
- FormsAuthenticationConfiguration.cs
- MulticastDelegate.cs
- RuleInfoComparer.cs
- ClientBuildManagerCallback.cs
- mediaeventargs.cs
- IPHostEntry.cs
- CodeStatementCollection.cs
- TreeView.cs
- DateTimeOffset.cs
- EventListenerClientSide.cs
- MetaModel.cs
- KeyedCollection.cs
- ObjectListGeneralPage.cs
- MetricEntry.cs
- HttpRequestWrapper.cs
- ObjectIDGenerator.cs
- ResolveCriteriaApril2005.cs
- TextElement.cs
- MgmtConfigurationRecord.cs
- MenuAdapter.cs
- BeginEvent.cs
- CallInfo.cs
- NameTable.cs
- LinkClickEvent.cs
- ExceptionUtil.cs
- HtmlInputText.cs
- DesignSurfaceEvent.cs
- SystemIPInterfaceProperties.cs
- SchemaNames.cs
- DataStreams.cs
- BinHexDecoder.cs
- sqlcontext.cs
- DependencyPropertyKey.cs
- FeatureManager.cs
- TextMetrics.cs
- AnimationClockResource.cs
- EdmConstants.cs
- InfoCardTrace.cs
- DecoderNLS.cs
- NumericUpDownAccelerationCollection.cs
- TypeEnumerableViewSchema.cs
- TempEnvironment.cs
- FragmentQueryKB.cs
- AccessorTable.cs
- Tablet.cs
- DataGridRelationshipRow.cs
- ViewGenResults.cs
- WebPartEditorOkVerb.cs
- PolicyConversionContext.cs
- listitem.cs
- ExpressionPrinter.cs
- SafeCoTaskMem.cs
- Popup.cs
- CurrentTimeZone.cs
- ApplicationInfo.cs
- DataServices.cs
- UniqueConstraint.cs
- MetadataReference.cs
- HttpServerVarsCollection.cs
- XmlStreamStore.cs
- ProfileInfo.cs
- ConnectivityStatus.cs
- DataControlImageButton.cs