public FunctionMapStore(ISourceCodeProvider sourceCodeProvider, Func <string, SourceMap> sourceMapGetter)
 {
     _functionMapGenerator = new FunctionMapGenerator();
     _functionMapCache     = new KeyValueCache <string, IReadOnlyList <FunctionMapEntry> >(sourceCodeUrl => _functionMapGenerator.GenerateFunctionMap(
                                                                                               sourceCodeProvider.GetSourceCode(sourceCodeUrl),
                                                                                               sourceMapGetter(sourceCodeUrl)));
 }
 public SourceMapStore(ISourceMapProvider sourceMapProvider)
 {
     _sourceMapProvider = sourceMapProvider;
     _sourceMapParser   = new SourceMapParser();
     _sourceMapCache    = new KeyValueCache <string, SourceMap>(sourceCodeUrl => _sourceMapParser.ParseSourceMap(_sourceMapProvider.GetSourceMapContentsForCallstackUrl(sourceCodeUrl)));
 }