コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }