internal static void LogEndGetMailboxesEvent(Guid activityId, string assistantName, int numberOfMailboxesToProcess, AssistantBase assistant) { List <KeyValuePair <string, object> > customData = new List <KeyValuePair <string, object> > { new KeyValuePair <string, object>("MailboxesToProcess", numberOfMailboxesToProcess) }; AssistantsLog.InternalLogRow(activityId, assistantName, null, AssistantsEventType.EndGetMailboxes, customData, Guid.Empty); AssistantsLog.LogDatabaseSlaEvent(assistant, DatabaseSlaEventType.EndMailboxTableQuery, null); }
internal static void LogErrorEnumeratingMailboxes(ITimeBasedAssistant assistant, Guid mailboxGuid, Exception exception, bool isExceptionHandled) { string value = (exception.InnerException != null) ? exception.InnerException.GetType().ToString() : string.Empty; List <KeyValuePair <string, object> > customData = new List <KeyValuePair <string, object> > { new KeyValuePair <string, object>("MailboxGuid", mailboxGuid.ToString()), new KeyValuePair <string, object>("ExceptionType", exception.GetType().ToString()), new KeyValuePair <string, object>("InnerExceptionType", value), new KeyValuePair <string, object>("IsExceptionHandled", isExceptionHandled.ToString()), new KeyValuePair <string, object>("ExceptionDetail", exception.ToString()) }; AssistantsLog.InternalLogRow(Guid.Empty, (assistant != null) ? assistant.NonLocalizedName : string.Empty, null, AssistantsEventType.ErrorEnumeratingMailbox, customData, Guid.Empty); AssistantsLog.LogDatabaseSlaEvent(assistant as AssistantBase, DatabaseSlaEventType.ErrorMailboxTableQuery, exception); }
internal static void LogDriverNotStartedEvent(string assistantName, AssistantBase assistant) { AssistantsLog.InternalLogRow(Guid.Empty, assistantName, null, AssistantsEventType.DriverNotStarted, null, Guid.Empty); AssistantsLog.LogDatabaseSlaEvent(assistant, DatabaseSlaEventType.DatabaseIsStopped, null); }
internal static void LogDatabaseStopEvent(AssistantBase assistant) { AssistantsLog.LogDatabaseSlaEvent(assistant, DatabaseSlaEventType.StopDatabase, null); }