Esempio n. 1
0
        public async Task <SearchStatusResponse> GetStatusAsync(SearchStatusOptions options, Assembly assemblyForMetadata)
        {
            var response = new SearchStatusResponse
            {
                Success = true,
            };

            response.Duration = await Measure.DurationAsync(() => PopulateResponseAsync(options, assemblyForMetadata, response));

            _telemetryService.TrackGetSearchServiceStatus(options, response.Success, response.Duration.Value);

            return(response);
        }