Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / Net / System / Net / Mail / SmtpReplyReader.cs / 1 / 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
- TypeLoadException.cs
- RuntimeConfig.cs
- TextOutput.cs
- TempFiles.cs
- DecimalAnimation.cs
- TemplateComponentConnector.cs
- SerializerWriterEventHandlers.cs
- DateTimeUtil.cs
- TreeIterators.cs
- GPPOINT.cs
- CompilerParameters.cs
- LogicalMethodInfo.cs
- securitymgrsite.cs
- ToolStripDropDownItemDesigner.cs
- CompilerHelpers.cs
- VectorAnimationUsingKeyFrames.cs
- ViewGenResults.cs
- DictionaryCustomTypeDescriptor.cs
- SocketElement.cs
- ErrorHandler.cs
- CompressStream.cs
- Compress.cs
- BamlCollectionHolder.cs
- MenuItemStyleCollection.cs
- SelectedGridItemChangedEvent.cs
- ADMembershipProvider.cs
- OpenTypeLayoutCache.cs
- ControlIdConverter.cs
- DebugView.cs
- ButtonStandardAdapter.cs
- HttpListenerContext.cs
- COM2IDispatchConverter.cs
- CellLabel.cs
- UInt64.cs
- ResourcePermissionBase.cs
- Translator.cs
- ComponentDispatcherThread.cs
- ToolboxItemCollection.cs
- SEHException.cs
- XmlSerializerFactory.cs
- HtmlValidatorAdapter.cs
- _ConnectStream.cs
- PasswordDeriveBytes.cs
- SystemMulticastIPAddressInformation.cs
- ThreadPool.cs
- PenContext.cs
- CatalogZone.cs
- ListControlConvertEventArgs.cs
- StrokeCollection.cs
- StylusPoint.cs
- ControllableStoryboardAction.cs
- ValidationSummary.cs
- XmlTextReader.cs
- ProgressBarAutomationPeer.cs
- XmlReaderSettings.cs
- LinkedResource.cs
- KnownAssemblyEntry.cs
- RoleGroupCollection.cs
- RuntimeHandles.cs
- NetworkInformationPermission.cs
- SafePEFileHandle.cs
- MemoryStream.cs
- DataControlPagerLinkButton.cs
- XamlWriter.cs
- DbConnectionOptions.cs
- CommandPlan.cs
- ActiveXSerializer.cs
- GroupBoxRenderer.cs
- BitmapEffectOutputConnector.cs
- ConnectionPoint.cs
- XmlSecureResolver.cs
- IRCollection.cs
- Int32CollectionValueSerializer.cs
- CompilerGlobalScopeAttribute.cs
- NumberFunctions.cs
- JournalEntry.cs
- TypeSource.cs
- SoapAttributeAttribute.cs
- MultidimensionalArrayItemReference.cs
- TraceFilter.cs
- SecurityKeyUsage.cs
- Expression.cs
- ColumnBinding.cs
- SmiContext.cs
- WmlLinkAdapter.cs
- StringAttributeCollection.cs
- EventMappingSettings.cs
- XmlSignificantWhitespace.cs
- OracleParameter.cs
- TCPClient.cs
- AuthenticationConfig.cs
- PtsPage.cs
- ImmComposition.cs
- CharUnicodeInfo.cs
- WebServiceEnumData.cs
- PackWebRequest.cs
- ExtensionWindowResizeGrip.cs
- ByteStorage.cs
- sqlcontext.cs
- HttpResponseHeader.cs