public void TestAccount(StorageAccount account) { try { var table = AzureDiagnosticLogsTable <AzureDiagnosticLogEntry> .CreateTable(account, "WADLogsTable"); AzureDiagnosticsUtils.FindFirstMessagePartitionKey(table); } catch (Exception exception) { RethrowStorageExceptionWithUserFriendlyMessage(exception); throw; } }
public IAzureDiagnosticLogsTable CreateTable(StorageAccount account) { return(AzureDiagnosticLogsTable <WADWindowsEventLogsTableEntry> .CreateTable(account, "WADWindowsEventLogsTable")); }
public IAzureDiagnosticLogsTable CreateTable(StorageAccount account) { return(AzureDiagnosticLogsTable <WADDiagnosticInfrastructureLogsTableEntry> .CreateTable(account, "WADDiagnosticInfrastructureLogsTable")); }
public static AzureDiagnosticLogsTable <EntryType> CreateTable(StorageAccount account, string logsTableName) { return(account.AccountType == StorageAccount.Type.DevelopmentAccount ? AzureDiagnosticLogsTable <EntryType> .CreateDevelopmentTable(logsTableName) : new AzureDiagnosticLogsTable <EntryType>(account.ToCloudStorageAccount(), logsTableName)); }