44
55using System . IO . Abstractions ;
66using Elastic . Documentation . Legacy ;
7- using Elastic . Documentation . LegacyPageLookup ;
7+ using Elastic . Documentation . LegacyDocs ;
88
99namespace Documentation . Assembler . Legacy ;
1010
1111public record PageLegacyUrlMapper : ILegacyUrlMapper
1212{
1313 private IReadOnlyDictionary < string , IReadOnlyCollection < string > > PreviousUrls { get ; }
14- private LegacyPageLookup LegacyPageLookup { get ; }
15- public PageLegacyUrlMapper ( LegacyPageLookup legacyPageLookup , IReadOnlyDictionary < string , IReadOnlyCollection < string > > previousUrls )
14+ private LegacyPageChecker LegacyPageChecker { get ; }
15+ public PageLegacyUrlMapper ( LegacyPageChecker legacyPageChecker , IReadOnlyDictionary < string , IReadOnlyCollection < string > > previousUrls )
1616 {
1717 PreviousUrls = previousUrls ;
18- LegacyPageLookup = legacyPageLookup ;
18+ LegacyPageChecker = legacyPageChecker ;
1919 }
2020
2121 public IReadOnlyCollection < LegacyPageMapping > MapLegacyUrl ( IReadOnlyCollection < string > ? mappedPages )
@@ -41,7 +41,7 @@ public IReadOnlyCollection<LegacyPageMapping> MapLegacyUrl(IReadOnlyCollection<s
4141 {
4242 var legacyPageMapping = new LegacyPageMapping ( mappedPage , v , true ) ;
4343 var path = Uri . TryCreate ( legacyPageMapping . ToString ( ) , UriKind . Absolute , out var uri ) ? uri : null ;
44- var exists = LegacyPageLookup . PathExists ( path ? . AbsolutePath ! ) ;
44+ var exists = LegacyPageChecker . PathExists ( path ? . AbsolutePath ! ) ;
4545 return legacyPageMapping with { Exists = exists } ;
4646 }
4747 ) . ToArray ( ) ;
0 commit comments