Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }