public async Task <CloudJob?> GetJobAsync(string jobId) { try { return(await AzureQuantumWorkspace.GetJobAsync(jobId)); } catch (Exception e) { Logger.LogError(e, $"Failed to retrieve the specified Azure Quantum job: {e.Message}"); } return(null); }
public async Task <IEnumerable <CloudJob>?> ListJobsAsync() { try { return(await AzureQuantumWorkspace.ListJobsAsync()); } catch (Exception e) { Logger.LogError(e, $"Failed to retrieve the list of jobs from the Azure Quantum workspace: {e.Message}"); } return(null); }
public async Task <IEnumerable <QuotaInfo>?> ListQuotasAsync() { try { return(await AzureQuantumWorkspace.ListQuotasAsync()); } catch (Exception e) { Logger.LogError(e, $"Failed to retrieve the quota information from the Azure Quantum workspace: {e.Message}"); } return(null); }