// Note: this type is marked as 'beforefieldinit'. static AuditLogOpticsLogData() { LogTableSchema <AuditLogOpticsLogData>[] array = new LogTableSchema <AuditLogOpticsLogData> [19]; array[0] = new LogTableSchema <AuditLogOpticsLogData>("Tenant", delegate(AuditLogOpticsLogData data) { if (!(data.OrganizationId == null)) { return(data.OrganizationId.ToString()); } return("First Org"); }); array[1] = new LogTableSchema <AuditLogOpticsLogData>("SearchType", (AuditLogOpticsLogData data) => data.SearchType); array[2] = new LogTableSchema <AuditLogOpticsLogData>("QueryComplexity", (AuditLogOpticsLogData data) => data.QueryComplexity.ToString(CultureInfo.InvariantCulture)); array[3] = new LogTableSchema <AuditLogOpticsLogData>("ExecutionTime", (AuditLogOpticsLogData data) => data.Stopwatch.ElapsedMilliseconds.ToString(CultureInfo.InvariantCulture)); array[4] = new LogTableSchema <AuditLogOpticsLogData>("CallResult", delegate(AuditLogOpticsLogData data) { if (!data.CallResult) { return("0"); } return("1"); }); array[5] = new LogTableSchema <AuditLogOpticsLogData>("ErrorType", (AuditLogOpticsLogData data) => AuditingOpticsLogger.GetExceptionNamesForTrace(data.ErrorType, AuditLogExceptionFormatter.Instance)); array[6] = new LogTableSchema <AuditLogOpticsLogData>("ResultsReturned", (AuditLogOpticsLogData data) => data.ResultsReturned.ToString(CultureInfo.InvariantCulture)); array[7] = new LogTableSchema <AuditLogOpticsLogData>("ErrorCount", (AuditLogOpticsLogData data) => data.ErrorCount.ToString(CultureInfo.InvariantCulture)); array[8] = new LogTableSchema <AuditLogOpticsLogData>("Async", delegate(AuditLogOpticsLogData data) { if (!data.IsAsynchronous) { return("0"); } return("1"); }); array[9] = new LogTableSchema <AuditLogOpticsLogData>("ShowDetails", delegate(AuditLogOpticsLogData data) { if (!data.ShowDetails) { return("0"); } return("1"); }); array[10] = new LogTableSchema <AuditLogOpticsLogData>("MailboxCount", (AuditLogOpticsLogData data) => data.MailboxCount.ToString(CultureInfo.InvariantCulture)); array[11] = new LogTableSchema <AuditLogOpticsLogData>("SearchStartDateTime", (AuditLogOpticsLogData data) => data.SearchStartDateTime.ToString()); array[12] = new LogTableSchema <AuditLogOpticsLogData>("SearchEndDateTime", (AuditLogOpticsLogData data) => data.SearchEndDateTime.ToString()); array[13] = new LogTableSchema <AuditLogOpticsLogData>("CorrelationID", (AuditLogOpticsLogData data) => data.CorrelationID); array[14] = new LogTableSchema <AuditLogOpticsLogData>("Retry", (AuditLogOpticsLogData data) => data.Retry.ToString(CultureInfo.InvariantCulture)); array[15] = new LogTableSchema <AuditLogOpticsLogData>("RequestDeleted", delegate(AuditLogOpticsLogData data) { if (!data.RequestDeleted) { return("0"); } return("1"); }); array[16] = new LogTableSchema <AuditLogOpticsLogData>("LastProcessedMailbox", (AuditLogOpticsLogData data) => data.LastProcessedMailbox); array[17] = new LogTableSchema <AuditLogOpticsLogData>("DiagnosticContext", (AuditLogOpticsLogData data) => AuditingOpticsLogger.GetDiagnosticContext(data.ErrorType)); array[18] = new LogTableSchema <AuditLogOpticsLogData>("RequestId", (AuditLogOpticsLogData data) => data.requestId.ToString("D")); AuditLogOpticsLogData.LogSchema = array; }
// Token: 0x06000666 RID: 1638 RVA: 0x0001795C File Offset: 0x00015B5C // Note: this type is marked as 'beforefieldinit'. static AdminAuditOpticsLogData() { LogTableSchema <AdminAuditOpticsLogData>[] array = new LogTableSchema <AdminAuditOpticsLogData> [14]; array[0] = new LogTableSchema <AdminAuditOpticsLogData>("Tenant", (AdminAuditOpticsLogData data) => data.Tenant); array[1] = new LogTableSchema <AdminAuditOpticsLogData>("CmdletName", (AdminAuditOpticsLogData data) => data.CmdletName); array[2] = new LogTableSchema <AdminAuditOpticsLogData>("CmdletSucceeded", delegate(AdminAuditOpticsLogData data) { if (!data.OperationSucceeded) { return("0"); } return("1"); }); array[3] = new LogTableSchema <AdminAuditOpticsLogData>("CmdletError", (AdminAuditOpticsLogData data) => string.Empty); array[4] = new LogTableSchema <AdminAuditOpticsLogData>("AuditSucceeded", delegate(AdminAuditOpticsLogData data) { if (!data.AuditSucceeded) { return("0"); } return("1"); }); array[5] = new LogTableSchema <AdminAuditOpticsLogData>("LoggingError", (AdminAuditOpticsLogData data) => AuditingOpticsLogger.GetExceptionNamesForTrace(data.LoggingError, AuditLogExceptionFormatter.Instance)); array[6] = new LogTableSchema <AdminAuditOpticsLogData>("LoggingTime", (AdminAuditOpticsLogData data) => data.LoggingTime.ToString()); array[7] = new LogTableSchema <AdminAuditOpticsLogData>("RecordSize", (AdminAuditOpticsLogData data) => data.RecordSize.ToString()); array[8] = new LogTableSchema <AdminAuditOpticsLogData>("ExternalAccess", delegate(AdminAuditOpticsLogData data) { if (!data.ExternalAccess) { return("0"); } return("1"); }); array[9] = new LogTableSchema <AdminAuditOpticsLogData>("ExecutingUserOrganizationId", delegate(AdminAuditOpticsLogData data) { if (!(data.ExecutingUserOrganizationId != null)) { return(string.Empty); } return(data.ExecutingUserOrganizationId.ToString()); }); array[10] = new LogTableSchema <AdminAuditOpticsLogData>("DiagnosticContext", (AdminAuditOpticsLogData data) => AuditingOpticsLogger.GetDiagnosticContext(data.LoggingError)); array[11] = new LogTableSchema <AdminAuditOpticsLogData>("RequestId", (AdminAuditOpticsLogData data) => data.requestId.ToString("D")); array[12] = new LogTableSchema <AdminAuditOpticsLogData>("Asynchronous", delegate(AdminAuditOpticsLogData data) { if (!data.Asynchronous) { return("0"); } return("1"); }); array[13] = new LogTableSchema <AdminAuditOpticsLogData>("RecordId", (AdminAuditOpticsLogData data) => data.RecordId.ToString()); AdminAuditOpticsLogData.logSchema = array; }