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
- SafeProcessHandle.cs
- followingquery.cs
- RequestStatusBarUpdateEventArgs.cs
- ActivityCodeDomSerializer.cs
- DesignerTransactionCloseEvent.cs
- XmlILCommand.cs
- StyleBamlRecordReader.cs
- CodeSubDirectoriesCollection.cs
- WindowsFormsSynchronizationContext.cs
- FacetChecker.cs
- EventProviderWriter.cs
- Cloud.cs
- NetSectionGroup.cs
- DetailsViewDeletedEventArgs.cs
- DefaultValueTypeConverter.cs
- XmlComment.cs
- UserNameSecurityTokenParameters.cs
- NumberFunctions.cs
- precedingsibling.cs
- AsymmetricSecurityBindingElement.cs
- SQLRoleProvider.cs
- AnnotationHelper.cs
- ValueConversionAttribute.cs
- IdentifierCollection.cs
- DataGridViewUtilities.cs
- ExportException.cs
- BooleanFunctions.cs
- XmlEncodedRawTextWriter.cs
- DeobfuscatingStream.cs
- Listbox.cs
- EntitySqlQueryCacheEntry.cs
- DragSelectionMessageFilter.cs
- SafeRightsManagementQueryHandle.cs
- References.cs
- DelayedRegex.cs
- DeclarativeCatalogPart.cs
- ToolStripRenderEventArgs.cs
- Win32SafeHandles.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- DispatcherOperation.cs
- AsyncOperationContext.cs
- TableSectionStyle.cs
- StyleCollectionEditor.cs
- NullableConverter.cs
- ColumnResizeAdorner.cs
- EventHandlersStore.cs
- OutputCacheProfile.cs
- PriorityItem.cs
- XappLauncher.cs
- LayoutManager.cs
- Win32SafeHandles.cs
- BitmapImage.cs
- UpdatePanelTriggerCollection.cs
- FileLogRecord.cs
- ProfileGroupSettingsCollection.cs
- DecimalAnimation.cs
- ViewRendering.cs
- CLRBindingWorker.cs
- ObjectFullSpanRewriter.cs
- DataProtection.cs
- MULTI_QI.cs
- WebPartTracker.cs
- SqlTransaction.cs
- BindingsCollection.cs
- FileRegion.cs
- WindowsFormsHelpers.cs
- GridViewDeletedEventArgs.cs
- EntityReference.cs
- DefaultAssemblyResolver.cs
- TTSEngineProxy.cs
- WebServiceHost.cs
- StructuralObject.cs
- KeyFrames.cs
- MachineKey.cs
- DataGridViewColumn.cs
- milexports.cs
- IxmlLineInfo.cs
- DesignBinding.cs
- wgx_commands.cs
- ButtonStandardAdapter.cs
- Underline.cs
- PropertyChangedEventManager.cs
- OrderByExpression.cs
- ComponentGuaranteesAttribute.cs
- ELinqQueryState.cs
- CheckBoxRenderer.cs
- ConstructorBuilder.cs
- XmlArrayItemAttributes.cs
- SiteMapProvider.cs
- DoubleKeyFrameCollection.cs
- SamlAction.cs
- RestClientProxyHandler.cs
- DataReceivedEventArgs.cs
- Graphics.cs
- UserValidatedEventArgs.cs
- PersonalizablePropertyEntry.cs
- TaskFormBase.cs
- HtmlInputButton.cs
- SchemaInfo.cs
- AppModelKnownContentFactory.cs