C# Class Smrf.SocialNetworkLib.EmailNetworkAnalyzer

Analyzes a user's email social network.
Use one of the AnalyzeEmailNetwork() overloads to synchronously analyze a user's email social network, or use to do it asynchronously.
Inheritance: Object
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Свойство Type Description
m_oBackgroundWorker System.ComponentModel.BackgroundWorker

Private Properties

Свойство Type Description
AssertValid void

Méthodes publiques

Méthode Description
AnalyzeEmailNetwork ( ) : Smrf.SocialNetworkLib.EmailParticipantPair[]
AnalyzeEmailNetwork ( EmailParticipantCriteria participantsCriteria, Nullable startTime, Nullable endTime, String subjectText, String bodyText, String folder, Nullable minimumSize, Nullable maximumSize, Nullable attachmentFilter, Nullable hasCc, Nullable hasBcc, Nullable isReplyFromParticipant1, System.Boolean useCcForEdgeWeights, System.Boolean useBccForEdgeWeights ) : Smrf.SocialNetworkLib.EmailParticipantPair[]
AnalyzeEmailNetworkAsync ( EmailParticipantCriteria participantsCriteria, Nullable startTime, Nullable endTime, String subjectText, String bodyText, String folder, Nullable minimumSize, Nullable maximumSize, Nullable attachmentFilter, Nullable hasCc, Nullable hasBcc, Nullable isReplyFromParticipant1, System.Boolean useCcForEdgeWeights, System.Boolean useBccForEdgeWeights ) : void
CancelAsync ( ) : void
EmailNetworkAnalyzer ( ) : System

Initializes a new instance of the EmailNetworkAnalyzer class.

Méthodes protégées

Méthode Description
AnalyzeEmailNetworkInternal ( EmailParticipantCriteria participantsCriteria, Nullable startTime, Nullable endTime, String subjectText, String bodyText, String folder, Nullable minimumSize, Nullable maximumSize, Nullable attachmentFilter, Nullable hasCc, Nullable hasBcc, Nullable isReplyFromParticipant1, System.Boolean useCcForEdgeWeights, System.Boolean useBccForEdgeWeights, BackgroundWorker backgroundWorker, DoWorkEventArgs doWorkEventArgs ) : Smrf.SocialNetworkLib.EmailParticipantPair[]
AnalyzeEmailNetworkInternal ( System.Data.OleDb.OleDbDataReader oDataReader, System.Boolean bUseCcForEdgeWeights, System.Boolean bUseBccForEdgeWeights, BackgroundWorker oBackgroundWorker, DoWorkEventArgs oDoWorkEventArgs ) : Smrf.SocialNetworkLib.EmailParticipantPair[]
AnalyzeOneEmail ( Object oFromField, Object oToField, Object oCcField, Object oBccField, System.Boolean bUseCcForEdgeWeights, System.Boolean bUseBccForEdgeWeights, Int32>.Dictionary oAggregatedDictionary ) : void
AnalyzeOneEmailField ( String sFrom, Object oField, Int32>.Dictionary oPerEmailDictionary, Int32>.Dictionary oAggregatedDictionary ) : void
AppendParticipantClauseToQuery ( String sEscapedParticipant, IncludedIn eIncludedIn, IncludedIn eFlagToCheck, StringBuilder oStringBuilder, System.Boolean &bParticipantClauseAppended ) : void
BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
BackgroundWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
CheckAnalyzeMethodArgument ( String sArgument, String sParameterName ) : void
CheckAnalyzeMethodArguments ( EmailParticipantCriteria participantsCriteria, Nullable startTime, Nullable endTime, String subjectText, String bodyText, String folder, Nullable minimumSize, Nullable maximumSize, Nullable attachmentFilter, Nullable isReplyFromParticipant1 ) : void
CreateQuery ( EmailParticipantCriteria participantsCriteria, Nullable startTime, Nullable endTime, String subjectText, String bodyText, String folder, Nullable minimumSize, Nullable maximumSize, Nullable attachmentFilter, Nullable hasCc, Nullable hasBcc, Nullable isReplyFromParticipant1 ) : String
EscapeStringForContains ( String sString ) : String
EscapeStringForEquals ( String sString ) : String
FormatTime ( System.DateTime oTime ) : String
GetDataReader ( String sQuery ) : System.Data.OleDb.OleDbDataReader
KeyToParticipants ( String sKey, String &sParticipant1, String &sParticipant2 ) : void
ParticipantsToKey ( String sParticipant1, String sParticipant2 ) : String

Private Methods

Méthode Description
AssertValid ( ) : void

Method Details

AnalyzeEmailNetwork() public méthode

public AnalyzeEmailNetwork ( ) : Smrf.SocialNetworkLib.EmailParticipantPair[]
Résultat Smrf.SocialNetworkLib.EmailParticipantPair[]

AnalyzeEmailNetwork() public méthode

public AnalyzeEmailNetwork ( EmailParticipantCriteria participantsCriteria, Nullable startTime, Nullable endTime, String subjectText, String bodyText, String folder, Nullable minimumSize, Nullable maximumSize, Nullable attachmentFilter, Nullable hasCc, Nullable hasBcc, Nullable isReplyFromParticipant1, System.Boolean useCcForEdgeWeights, System.Boolean useBccForEdgeWeights ) : Smrf.SocialNetworkLib.EmailParticipantPair[]
participantsCriteria EmailParticipantCriteria
startTime Nullable
endTime Nullable
subjectText String
bodyText String
folder String
minimumSize Nullable
maximumSize Nullable
attachmentFilter Nullable
hasCc Nullable
hasBcc Nullable
isReplyFromParticipant1 Nullable
useCcForEdgeWeights System.Boolean
useBccForEdgeWeights System.Boolean
Résultat Smrf.SocialNetworkLib.EmailParticipantPair[]

AnalyzeEmailNetworkAsync() public méthode

public AnalyzeEmailNetworkAsync ( EmailParticipantCriteria participantsCriteria, Nullable startTime, Nullable endTime, String subjectText, String bodyText, String folder, Nullable minimumSize, Nullable maximumSize, Nullable attachmentFilter, Nullable hasCc, Nullable hasBcc, Nullable isReplyFromParticipant1, System.Boolean useCcForEdgeWeights, System.Boolean useBccForEdgeWeights ) : void
participantsCriteria EmailParticipantCriteria
startTime Nullable
endTime Nullable
subjectText String
bodyText String
folder String
minimumSize Nullable
maximumSize Nullable
attachmentFilter Nullable
hasCc Nullable
hasBcc Nullable
isReplyFromParticipant1 Nullable
useCcForEdgeWeights System.Boolean
useBccForEdgeWeights System.Boolean
Résultat void

AnalyzeEmailNetworkInternal() protected méthode

protected AnalyzeEmailNetworkInternal ( EmailParticipantCriteria participantsCriteria, Nullable startTime, Nullable endTime, String subjectText, String bodyText, String folder, Nullable minimumSize, Nullable maximumSize, Nullable attachmentFilter, Nullable hasCc, Nullable hasBcc, Nullable isReplyFromParticipant1, System.Boolean useCcForEdgeWeights, System.Boolean useBccForEdgeWeights, BackgroundWorker backgroundWorker, DoWorkEventArgs doWorkEventArgs ) : Smrf.SocialNetworkLib.EmailParticipantPair[]
participantsCriteria EmailParticipantCriteria
startTime Nullable
endTime Nullable
subjectText String
bodyText String
folder String
minimumSize Nullable
maximumSize Nullable
attachmentFilter Nullable
hasCc Nullable
hasBcc Nullable
isReplyFromParticipant1 Nullable
useCcForEdgeWeights System.Boolean
useBccForEdgeWeights System.Boolean
backgroundWorker System.ComponentModel.BackgroundWorker
doWorkEventArgs System.ComponentModel.DoWorkEventArgs
Résultat Smrf.SocialNetworkLib.EmailParticipantPair[]

AnalyzeEmailNetworkInternal() protected méthode

protected AnalyzeEmailNetworkInternal ( System.Data.OleDb.OleDbDataReader oDataReader, System.Boolean bUseCcForEdgeWeights, System.Boolean bUseBccForEdgeWeights, BackgroundWorker oBackgroundWorker, DoWorkEventArgs oDoWorkEventArgs ) : Smrf.SocialNetworkLib.EmailParticipantPair[]
oDataReader System.Data.OleDb.OleDbDataReader
bUseCcForEdgeWeights System.Boolean
bUseBccForEdgeWeights System.Boolean
oBackgroundWorker System.ComponentModel.BackgroundWorker
oDoWorkEventArgs System.ComponentModel.DoWorkEventArgs
Résultat Smrf.SocialNetworkLib.EmailParticipantPair[]

AnalyzeOneEmail() protected méthode

protected AnalyzeOneEmail ( Object oFromField, Object oToField, Object oCcField, Object oBccField, System.Boolean bUseCcForEdgeWeights, System.Boolean bUseBccForEdgeWeights, Int32>.Dictionary oAggregatedDictionary ) : void
oFromField Object
oToField Object
oCcField Object
oBccField Object
bUseCcForEdgeWeights System.Boolean
bUseBccForEdgeWeights System.Boolean
oAggregatedDictionary Int32>.Dictionary
Résultat void

AnalyzeOneEmailField() protected méthode

protected AnalyzeOneEmailField ( String sFrom, Object oField, Int32>.Dictionary oPerEmailDictionary, Int32>.Dictionary oAggregatedDictionary ) : void
sFrom String
oField Object
oPerEmailDictionary Int32>.Dictionary
oAggregatedDictionary Int32>.Dictionary
Résultat void

AppendParticipantClauseToQuery() protected méthode

protected AppendParticipantClauseToQuery ( String sEscapedParticipant, IncludedIn eIncludedIn, IncludedIn eFlagToCheck, StringBuilder oStringBuilder, System.Boolean &bParticipantClauseAppended ) : void
sEscapedParticipant String
eIncludedIn IncludedIn
eFlagToCheck IncludedIn
oStringBuilder StringBuilder
bParticipantClauseAppended System.Boolean
Résultat void

BackgroundWorker_DoWork() protected méthode

protected BackgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
sender object
e System.ComponentModel.DoWorkEventArgs
Résultat void

BackgroundWorker_RunWorkerCompleted() protected méthode

protected BackgroundWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
sender object
e System.ComponentModel.RunWorkerCompletedEventArgs
Résultat void

CancelAsync() public méthode

public CancelAsync ( ) : void
Résultat void

CheckAnalyzeMethodArgument() protected méthode

protected CheckAnalyzeMethodArgument ( String sArgument, String sParameterName ) : void
sArgument String
sParameterName String
Résultat void

CheckAnalyzeMethodArguments() protected méthode

protected CheckAnalyzeMethodArguments ( EmailParticipantCriteria participantsCriteria, Nullable startTime, Nullable endTime, String subjectText, String bodyText, String folder, Nullable minimumSize, Nullable maximumSize, Nullable attachmentFilter, Nullable isReplyFromParticipant1 ) : void
participantsCriteria EmailParticipantCriteria
startTime Nullable
endTime Nullable
subjectText String
bodyText String
folder String
minimumSize Nullable
maximumSize Nullable
attachmentFilter Nullable
isReplyFromParticipant1 Nullable
Résultat void

CreateQuery() protected méthode

protected CreateQuery ( EmailParticipantCriteria participantsCriteria, Nullable startTime, Nullable endTime, String subjectText, String bodyText, String folder, Nullable minimumSize, Nullable maximumSize, Nullable attachmentFilter, Nullable hasCc, Nullable hasBcc, Nullable isReplyFromParticipant1 ) : String
participantsCriteria EmailParticipantCriteria
startTime Nullable
endTime Nullable
subjectText String
bodyText String
folder String
minimumSize Nullable
maximumSize Nullable
attachmentFilter Nullable
hasCc Nullable
hasBcc Nullable
isReplyFromParticipant1 Nullable
Résultat String

EmailNetworkAnalyzer() public méthode

Initializes a new instance of the EmailNetworkAnalyzer class.
public EmailNetworkAnalyzer ( ) : System
Résultat System

EscapeStringForContains() protected méthode

protected EscapeStringForContains ( String sString ) : String
sString String
Résultat String

EscapeStringForEquals() protected méthode

protected EscapeStringForEquals ( String sString ) : String
sString String
Résultat String

FormatTime() protected méthode

protected FormatTime ( System.DateTime oTime ) : String
oTime System.DateTime
Résultat String

GetDataReader() protected méthode

protected GetDataReader ( String sQuery ) : System.Data.OleDb.OleDbDataReader
sQuery String
Résultat System.Data.OleDb.OleDbDataReader

KeyToParticipants() protected méthode

protected KeyToParticipants ( String sKey, String &sParticipant1, String &sParticipant2 ) : void
sKey String
sParticipant1 String
sParticipant2 String
Résultat void

ParticipantsToKey() protected méthode

protected ParticipantsToKey ( String sParticipant1, String sParticipant2 ) : String
sParticipant1 String
sParticipant2 String
Résultat String

Property Details

m_oBackgroundWorker protected_oe property

protected BackgroundWorker,System.ComponentModel m_oBackgroundWorker
Résultat System.ComponentModel.BackgroundWorker