11using GroupDocs . Viewer . UI . Api . Local . Storage ;
22using GroupDocs . Viewer . UI . Api . Models ;
3+ using GroupDocs . Viewer . UI . Api . Utils ;
34using GroupDocs . Viewer . UI . Core ;
45using GroupDocs . Viewer . UI . Core . Caching . Implementation ;
56using GroupDocs . Viewer . UI . Core . Entities ;
1011using GroupDocs . Viewer . UI . SelfHost . Api . Licensing ;
1112using GroupDocs . Viewer . UI . SelfHost . Api . Viewers ;
1213using Microsoft . Extensions . Options ;
13- using GroupDocs . Viewer . UI . Api . Utils ;
1414
1515namespace GroupDocs . Viewer . UI . Sample . StaticContentMode . Generator
1616{
@@ -37,7 +37,7 @@ static async Task Main(string[] args)
3737 Console . WriteLine ( $ "Processing file: { file . FilePath } ") ;
3838
3939 IViewer viewer = CreateViewer ( apiConfig , fileStorage , urlBuilder ) ;
40-
40+
4141 string extension = Path . GetExtension ( file . FilePath ) ;
4242 string password = file . FileName . StartsWith ( "password" ) ? "12345" : string . Empty ;
4343 FileCredentials fileCredentials = new FileCredentials ( file . FilePath , extension , password ) ;
@@ -56,7 +56,7 @@ private static IViewer CreateViewer(Config apiConfig, IFileStorage fileStorage,
5656 {
5757 IOptions < Config > configOptions = new OptionsWrapper < Config > ( apiConfig ) ;
5858 IAsyncLock asyncLock = new AsyncDuplicateLock ( ) ;
59- IViewerLicenseManager licenseManager = new ViewerLicenseManager ( configOptions ) ;
59+ IViewerLicenseManager licenseManager = new ViewerLicenseManager ( apiConfig ) ;
6060 IInternalCache internalCache = new NoopInternalCache ( ) ;
6161 IFileTypeResolver fileTypeResolver = new FileExtensionFileTypeResolver ( ) ;
6262 IPageFormatter pageFormatter = new NoopPageFormatter ( ) ;
@@ -220,7 +220,7 @@ private static async Task SavePagesAsync(FileCredentials file, Pages pages)
220220 {
221221 var resourceFilePath = Path . Combine ( CONTENT_FOLDER , file . FilePath , page . PageNumber . ToString ( ) ,
222222 resource . ResourceName ) ;
223-
223+
224224 await Utils . SaveFileAsync ( resourceFilePath , resource . Data ) ;
225225 }
226226 }
0 commit comments