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
- SHA384.cs
- TableDesigner.cs
- ColorPalette.cs
- XmlAnyAttributeAttribute.cs
- SectionUpdates.cs
- MarshalByRefObject.cs
- CollectionViewProxy.cs
- EdmToObjectNamespaceMap.cs
- DataGridViewRowPostPaintEventArgs.cs
- SafeSystemMetrics.cs
- QueryCursorEventArgs.cs
- ComplexPropertyEntry.cs
- HttpHeaderCollection.cs
- ExtentCqlBlock.cs
- QuaternionValueSerializer.cs
- CategoryValueConverter.cs
- MouseButtonEventArgs.cs
- RadioButton.cs
- MonitoringDescriptionAttribute.cs
- EntityClientCacheEntry.cs
- CompositeControlDesigner.cs
- QueryResult.cs
- Win32Native.cs
- StructuralType.cs
- PrinterSettings.cs
- CodeGen.cs
- DesignColumnCollection.cs
- CqlGenerator.cs
- ColorTransformHelper.cs
- XmlTextWriter.cs
- BinaryParser.cs
- input.cs
- input.cs
- BinaryCommonClasses.cs
- HashMembershipCondition.cs
- AspProxy.cs
- ConnectorMovedEventArgs.cs
- RowSpanVector.cs
- ConnectionManagementElementCollection.cs
- InlineObject.cs
- ProjectionPlan.cs
- SettingsAttributeDictionary.cs
- returneventsaver.cs
- FunctionImportMapping.cs
- _NegoStream.cs
- WorkflowItemPresenter.cs
- XmlSchemaSequence.cs
- StandardToolWindows.cs
- DbMetaDataFactory.cs
- XmlIlGenerator.cs
- DomNameTable.cs
- Domain.cs
- Lease.cs
- DesignerActionKeyboardBehavior.cs
- DocumentPageViewAutomationPeer.cs
- FileIOPermission.cs
- PageVisual.cs
- ColorConvertedBitmap.cs
- TransactionsSectionGroup.cs
- SessionSwitchEventArgs.cs
- XmlChildEnumerator.cs
- ToolboxItemLoader.cs
- PersonalizablePropertyEntry.cs
- CurrentChangingEventManager.cs
- ClientScriptManager.cs
- CodePropertyReferenceExpression.cs
- DragEventArgs.cs
- KeyValuePair.cs
- IMembershipProvider.cs
- VerificationException.cs
- ProviderBase.cs
- FocusManager.cs
- ACL.cs
- ScrollPatternIdentifiers.cs
- DataError.cs
- AsnEncodedData.cs
- ProfileManager.cs
- BadImageFormatException.cs
- XmlNavigatorFilter.cs
- TiffBitmapEncoder.cs
- HttpRuntimeSection.cs
- ValueHandle.cs
- clipboard.cs
- DataControlFieldHeaderCell.cs
- Wildcard.cs
- Material.cs
- ListViewItemEventArgs.cs
- sqlpipe.cs
- Literal.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- NavigatorOutput.cs
- FormsAuthenticationUserCollection.cs
- PartialCachingAttribute.cs
- SignatureResourcePool.cs
- DeleteBookmarkScope.cs
- ThreadAttributes.cs
- PropertyExpression.cs
- UserControlBuildProvider.cs
- QilChoice.cs
- FileLogRecordStream.cs