public HttpResponseMessage DownloadFunctions(bool includeCsproj = true, bool includeAppSettings = false) { var tracer = _traceFactory.GetTracer(); using (tracer.Step($"{nameof(FunctionController)}.{nameof(DownloadFunctions)}({includeCsproj}, {includeAppSettings})")) { var appName = ServerConfiguration.GetApplicationName(); var fileName = $"{appName}.zip"; return(new HttpResponseMessage(HttpStatusCode.OK) { Content = ZipStreamContent.Create(fileName, tracer, zip => _manager.CreateArchive(zip, includeAppSettings, includeCsproj, appName)) }); } }