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
- Trace.cs
- DbTransaction.cs
- DetailsViewDeletedEventArgs.cs
- XmlFileEditor.cs
- SByte.cs
- DataGridBoolColumn.cs
- UnionCodeGroup.cs
- InputReferenceExpression.cs
- DrawingContextDrawingContextWalker.cs
- QilSortKey.cs
- HtmlEmptyTagControlBuilder.cs
- SortQuery.cs
- HttpClientCertificate.cs
- BorderSidesEditor.cs
- RuntimeHelpers.cs
- SchemaElementLookUpTable.cs
- StringFormat.cs
- ConfigXmlCDataSection.cs
- DeferredSelectedIndexReference.cs
- CryptoApi.cs
- XhtmlBasicPanelAdapter.cs
- CheckStoreFileValidityRequest.cs
- WindowsHyperlink.cs
- OleDbInfoMessageEvent.cs
- HtmlHead.cs
- AsymmetricKeyExchangeFormatter.cs
- ServiceBuildProvider.cs
- ObjRef.cs
- XmlSchemaExporter.cs
- SmiMetaData.cs
- UnauthorizedWebPart.cs
- TextTreeExtractElementUndoUnit.cs
- RegexReplacement.cs
- Win32MouseDevice.cs
- TrackingProfile.cs
- SerializationFieldInfo.cs
- TypeSemantics.cs
- GeneralTransform3DTo2DTo3D.cs
- Dynamic.cs
- GlyphRunDrawing.cs
- SqlRowUpdatedEvent.cs
- AttachedPropertyMethodSelector.cs
- AuthenticationModeHelper.cs
- GridItemCollection.cs
- QueryCacheEntry.cs
- OleStrCAMarshaler.cs
- DataContractSerializerElement.cs
- StaticSiteMapProvider.cs
- AutoResizedEvent.cs
- SqlRowUpdatingEvent.cs
- SiteMap.cs
- SafeRightsManagementHandle.cs
- CqlWriter.cs
- SynchronizedDispatch.cs
- DocumentOrderComparer.cs
- SafeFileMappingHandle.cs
- ImmutableDispatchRuntime.cs
- UniqueID.cs
- Binding.cs
- XamlGridLengthSerializer.cs
- CustomDictionarySources.cs
- X509CertificateValidator.cs
- DataComponentMethodGenerator.cs
- DefaultBindingPropertyAttribute.cs
- HandleCollector.cs
- WebPartTransformer.cs
- KoreanCalendar.cs
- XmlSchemaAnyAttribute.cs
- ListMarkerSourceInfo.cs
- BindableTemplateBuilder.cs
- URL.cs
- WrapPanel.cs
- SQLInt16.cs
- OracleBoolean.cs
- XmlSchemaValidationException.cs
- ClientSettingsProvider.cs
- UrlMappingsSection.cs
- NavigateEvent.cs
- QilXmlWriter.cs
- ServicePerformanceCounters.cs
- ColumnResizeAdorner.cs
- SqlDependencyUtils.cs
- ProfileSettings.cs
- StackSpiller.Generated.cs
- ViewLoader.cs
- ServerValidateEventArgs.cs
- VBIdentifierDesigner.xaml.cs
- HttpValueCollection.cs
- DataGridSortingEventArgs.cs
- MatrixConverter.cs
- XamlFxTrace.cs
- RangeValueProviderWrapper.cs
- DictionaryGlobals.cs
- TrustSection.cs
- WmlValidationSummaryAdapter.cs
- DataRowView.cs
- SessionState.cs
- HttpResponseHeader.cs
- ObjectContext.cs
- GPStream.cs