public IActionResult GetAddressLinks( [FromServices] SyndicationContext syndicationContext, CancellationToken cancellationToken = default) { var extractBuilder = new LinkedAddressExtractBuilder(syndicationContext); return(new ExtractArchive(ExtractFileNames.GetAddressLinksZip()) { extractBuilder.CreateLinkedBuildingUnitAddressFiles(), extractBuilder.CreateLinkedParcelAddressFiles() } .CreateFileCallbackResult(cancellationToken)); }
public async Task <IActionResult> GetAddressLinks( [FromServices] IConfiguration configuration, [FromServices] SyndicationContext syndicationContext, CancellationToken cancellationToken = default) { var extractBuilder = new LinkedAddressExtractBuilder(syndicationContext, configuration.GetConnectionString("SyndicationProjections")); return(new ExtractArchive(ExtractFileNames.GetAddressLinksZip()) { extractBuilder.CreateLinkedBuildingUnitAddressFiles(), await extractBuilder.CreateLinkedParcelAddressFiles(cancellationToken) } .CreateFileCallbackResult(cancellationToken)); }