C# Класс Stratosphere.Imap.ImapClient

Наследование: IDisposable
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
DefaultReadTimeout System.TimeSpan
ParseFailures EventHandler

Открытые методы

Метод Описание
Dispose ( ) : void
FetchMessages ( long beginUid, long endUid, ImapFetchOption option ) : IEnumerable
FetchMessages ( long beginUid, long endUid, ImapFetchOption option, IEnumerable extensionParameterNames ) : IEnumerable
FetchSection ( long uid, ImapBodyPart part ) : object
FetchSection ( long uid, ImapBodyPart part, bool peek ) : object
FetchUids ( long beginNumber, long endNumber ) : IEnumerable
FetchUids ( long beginNumber, long endNumber, bool isUidSet ) : IEnumerable
ImapClient ( string hostName, int portNumber, bool enableSsl, NetworkCredential credentials ) : System
ListFolders ( string reference, string wildcard ) : IEnumerable
ListFoldersWithFlags ( string reference, string wildcard, bool useXList ) : IEnumerable>>.IEnumerable
SelectFolder ( string folderName ) : ImapFolder
SelectFolder ( string folderName, bool isReadonly ) : ImapFolder
SendReceive ( string command ) : SendReceiveResult
SetDeleted ( long beginUid, long endUid ) : void
TryLogin ( ) : bool
TrySaslLogin ( string mechanism, string data ) : bool

Приватные методы

Метод Описание
CombineSplitLines ( string commandId, IEnumerable lines ) : IEnumerable
FormatSequence ( long begin, long end ) : string
FormatSequence ( long begin, long end, bool isUidSet ) : string
InitializeConnection ( ) : bool
IsLineBalanced ( bool isQuoted, int nonQuotedOpenBraceCount, int nonQuotedCloseBraceCount ) : bool
IsLineNonProtocolPrefix ( string line, string commandId ) : bool
IsLiteralSignalLine ( string line ) : bool
IsLiteralSignalLine ( string line, int &begin ) : bool
OnParseFailures ( IEnumerable details ) : void
ReadResponse ( StreamReader reader, string commandId ) : SendReceiveResult
ReadResponse ( StreamReader reader, string commandId, System.TimeSpan readTimeout ) : SendReceiveResult
SafeEnumerateLines ( IEnumerable lines, bool>.Func iterationOperation ) : void

Enumerates the lines, and if there is a handler specified for ParseFailures event, will just accumulate failure details, skipping to next line.. then once all lines are processed, fires the ParseFailures event with the details... if no handler is registered, then any exception will be thrown as-is, enumeration will stop, and no event is fired.

StoreFlag ( long beginUid, long endUid, string flag, FlagOperation operation ) : void
UpdateLineCounters ( string line, bool &isQuoted, int &accumulatedOpenBraceCount, int &accumulatedCloseBraceCount ) : void

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

FetchMessages() публичный Метод

public FetchMessages ( long beginUid, long endUid, ImapFetchOption option ) : IEnumerable
beginUid long
endUid long
option ImapFetchOption
Результат IEnumerable

FetchMessages() публичный Метод

public FetchMessages ( long beginUid, long endUid, ImapFetchOption option, IEnumerable extensionParameterNames ) : IEnumerable
beginUid long
endUid long
option ImapFetchOption
extensionParameterNames IEnumerable
Результат IEnumerable

FetchSection() публичный Метод

public FetchSection ( long uid, ImapBodyPart part ) : object
uid long
part ImapBodyPart
Результат object

FetchSection() публичный Метод

public FetchSection ( long uid, ImapBodyPart part, bool peek ) : object
uid long
part ImapBodyPart
peek bool
Результат object

FetchUids() публичный Метод

public FetchUids ( long beginNumber, long endNumber ) : IEnumerable
beginNumber long
endNumber long
Результат IEnumerable

FetchUids() публичный Метод

public FetchUids ( long beginNumber, long endNumber, bool isUidSet ) : IEnumerable
beginNumber long
endNumber long
isUidSet bool
Результат IEnumerable

ImapClient() публичный Метод

public ImapClient ( string hostName, int portNumber, bool enableSsl, NetworkCredential credentials ) : System
hostName string
portNumber int
enableSsl bool
credentials System.Net.NetworkCredential
Результат System

ListFolders() публичный Метод

public ListFolders ( string reference, string wildcard ) : IEnumerable
reference string
wildcard string
Результат IEnumerable

ListFoldersWithFlags() публичный Метод

public ListFoldersWithFlags ( string reference, string wildcard, bool useXList ) : IEnumerable>>.IEnumerable
reference string
wildcard string
useXList bool
Результат IEnumerable>>.IEnumerable

SelectFolder() публичный Метод

public SelectFolder ( string folderName ) : ImapFolder
folderName string
Результат ImapFolder

SelectFolder() публичный Метод

public SelectFolder ( string folderName, bool isReadonly ) : ImapFolder
folderName string
isReadonly bool
Результат ImapFolder

SendReceive() публичный Метод

public SendReceive ( string command ) : SendReceiveResult
command string
Результат SendReceiveResult

SetDeleted() публичный Метод

public SetDeleted ( long beginUid, long endUid ) : void
beginUid long
endUid long
Результат void

TryLogin() публичный Метод

public TryLogin ( ) : bool
Результат bool

TrySaslLogin() публичный Метод

public TrySaslLogin ( string mechanism, string data ) : bool
mechanism string
data string
Результат bool

Описание свойств

DefaultReadTimeout публичное статическое свойство

public static TimeSpan,System DefaultReadTimeout
Результат System.TimeSpan

ParseFailures публичное свойство

public EventHandler ParseFailures
Результат EventHandler