Exemplo n.º 1
0
 private async Task EnsureInitializedAsync()
 {
     /// Ensure the auxiliary data is loaded before processing a request. This is necessary because the response
     /// builder depends on <see cref="IAuxiliaryDataCache.Get" />, which requires that the auxiliary files have
     /// been loaded at least once.
     await _auxiliaryDataCache.EnsureInitializedAsync();
 }
Exemplo n.º 2
0
        private async Task <AuxiliaryFilesMetadata> GetAuxiliaryFilesMetadataAsync()
        {
            await _auxiliaryDataCache.EnsureInitializedAsync();

            return(_auxiliaryDataCache.Get().Metadata);
        }