1212using FineCodeCoverage . Impl ;
1313using FineCodeCoverage . Options ;
1414using FineCodeCoverage . Output ;
15+ using SharedProject . Core . Model ;
1516
1617namespace FineCodeCoverage . Engine
1718{
1819 internal enum ReloadCoverageStatus { Start , Done , Cancelled , Error , Initializing } ;
1920
2021 internal class NewCoverageLinesMessage
2122 {
22- public Dictionary < string , List < CoverageLine > > CoverageLines { get ; set ; }
23+ public SharedProject . Core . Model . FileLineCoverage CoverageLines { get ; set ; }
2324 }
2425
2526 internal class DisplayCoverageResultState
@@ -202,12 +203,12 @@ private void ClearCoverageLines()
202203 RaiseCoverageLines ( null ) ;
203204 }
204205
205- private void RaiseCoverageLines ( Dictionary < string , List < CoverageLine > > coverageLines )
206+ private void RaiseCoverageLines ( FileLineCoverage coverageLines )
206207 {
207208 eventAggregator . SendMessage ( new NewCoverageLinesMessage { CoverageLines = coverageLines } ) ;
208209 }
209210
210- private void UpdateUI ( Dictionary < string , List < CoverageLine > > coverageLines , string reportHtml )
211+ private void UpdateUI ( FileLineCoverage coverageLines , string reportHtml )
211212 {
212213 RaiseCoverageLines ( coverageLines ) ;
213214 if ( reportHtml == null )
@@ -217,7 +218,7 @@ private void UpdateUI(Dictionary<string, List<CoverageLine>> coverageLines, stri
217218 RaiseUpdateOutputWindow ( reportHtml ) ;
218219 }
219220
220- private async System . Threading . Tasks . Task < ( Dictionary < string , List < CoverageLine > > coverageLines , string reportFilePath ) > RunAndProcessReportAsync ( string [ ] coverOutputFiles , CancellationToken vsShutdownLinkedCancellationToken )
221+ private async System . Threading . Tasks . Task < ( FileLineCoverage coverageLines , string reportFilePath ) > RunAndProcessReportAsync ( string [ ] coverOutputFiles , CancellationToken vsShutdownLinkedCancellationToken )
221222 {
222223 var reportOutputFolder = coverageOutputManager . GetReportOutputFolder ( ) ;
223224 vsShutdownLinkedCancellationToken . ThrowIfCancellationRequested ( ) ;
@@ -262,7 +263,7 @@ private async System.Threading.Tasks.Task PrepareCoverageProjectsAsync(List<ICov
262263 }
263264 }
264265
265- private void DisplayCoverageResult ( System . Threading . Tasks . Task < ( Dictionary < string , List < CoverageLine > > coverageLines , string reportHtml ) > t , object state )
266+ private void DisplayCoverageResult ( System . Threading . Tasks . Task < ( FileLineCoverage coverageLines , string reportHtml ) > t , object state )
266267 {
267268 var displayCoverageResultState = ( DisplayCoverageResultState ) state ;
268269 if ( ! IsVsShutdown )
@@ -321,7 +322,7 @@ public void RunAndProcessReport(string[] coberturaFiles, Action cleanUp = null)
321322 {
322323 RunCancellableCoverageTask ( async ( vsShutdownLinkedCancellationToken ) =>
323324 {
324- Dictionary < string , List < CoverageLine > > coverageLines = null ;
325+ FileLineCoverage coverageLines = null ;
325326 string reportHtml = null ;
326327
327328 if ( coberturaFiles . Any ( ) )
@@ -333,7 +334,7 @@ public void RunAndProcessReport(string[] coberturaFiles, Action cleanUp = null)
333334 }
334335
335336 private void RunCancellableCoverageTask (
336- Func < CancellationToken , System . Threading . Tasks . Task < ( Dictionary < string , List < CoverageLine > > , string ) > > taskCreator , Action cleanUp )
337+ Func < CancellationToken , System . Threading . Tasks . Task < ( FileLineCoverage , string ) > > taskCreator , Action cleanUp )
337338 {
338339 var vsLinkedCancellationTokenSource = Reset ( ) ;
339340 var vsShutdownLinkedCancellationToken = vsLinkedCancellationTokenSource . Token ;
@@ -355,7 +356,7 @@ public void ReloadCoverage(Func<System.Threading.Tasks.Task<List<ICoverageProjec
355356 {
356357 RunCancellableCoverageTask ( async ( vsShutdownLinkedCancellationToken ) =>
357358 {
358- Dictionary < string , List < CoverageLine > > coverageLines = null ;
359+ FileLineCoverage coverageLines = null ;
359360 string reportHtml = null ;
360361
361362 await PollInitializedStatusAsync ( vsShutdownLinkedCancellationToken ) ;
0 commit comments