src/Microsoft.SymbolStore/SymbolStores/SymbolStore.cs
/// <summary>
/// Downloads the file or retrieves it from a cache from the symbol store chain.
/// </summary>
/// <param name="key">symbol index to retrieve</param>
/// <param name="token">to cancel requests</param>
/// <returns>file or null if not found</returns>
Downloads the file or retrieves it from a cache from the symbol store chain.
Downloads the file or retrieves it from a cache from the symbol store chain .
public async Task<SymbolStoreFile> GetFile(SymbolStoreKey key, CancellationToken token)
        {
            SymbolStoreFile file = await GetFileInner(key, token);
            if (file == null)
            {
                if (BackingStore != null)
                {
                    file = await BackingStore.GetFile(key, token);
                    if (file != null)
                    {
                        await WriteFileInner(key, file);
                        file.Stream.Position = 0;
                    }
                }
            }
            return file;
        }
public async Task < SymbolStoreFile > GetFile ( SymbolStoreKey key , CancellationToken token ) { SymbolStoreFile file = await GetFileInner ( key , token ) ; if ( file == null ) { if ( BackingStore != null ) { file = await BackingStore . GetFile ( key , token ) ; if ( file != null ) { await WriteFileInner ( key , file ) ; file . Stream . Position = 0 ; } } } return file ; }
Downloads the file or retrieves it from a cache from the symbol store chain.
Downloads the file or retrieves it from a cache from the symbol store chain .
// Reset stream to the beginning for next symbol store
file or null if not found
file or null if not found
key
SymbolStoreKey
symbol index to retrieve
symbol index to retrieve
token
CancellationToken
to cancel requests
to cancel requests