public async Task< FileStreamResult > ExportAsync(ExportDto input)
{
var contents = new Dictionary<string, byte[]>();
var discardedContents = new Dictionary<string, byte[]>();
FillMuyCompressionItems(ref contents, ref discardedContents);
FillMlCompressionItems(ref contents, ref discardedContents);
FillAkbCompressionItems(ref contents, ref discardedContents);
FillCkCompressionItems(ref contents, ref discardedContents);
var zipFileName = "EXPORT.zip";
var mainZipFileStream = new FileStream(Path.Join(Path.GetTempPath(), zipFileName), FileMode.Create, FileAccess.ReadWrite);
using (var zipArchive = new ZipArchive(mainZipFileStream, ZipArchiveMode.Create, true))
{
for (var i = 0; i < contents.Count; i++)
{
var item = contents.ElementAt(i);
var originalFileStream = new FileStream(Path.Join(Path.GetTempPath(), item.Key), FileMode.Create, FileAccess.ReadWrite);
await originalFileStream.WriteAsync(item.Value);
originalFileStream.Seek(0, SeekOrigin.Begin);
var zipEntry = zipArchive.CreateEntry(item.Key, CompressionLevel.Fastest);
await using(var zipEntryStream = zipEntry.Open())
await using (originalFileStream)
{
await originalFileStream.CopyToAsync(zipEntryStream);
}
}
}
mainZipFileStream.Seek(0, SeekOrigin.Begin);
return new FileStreamResult(mainZipFileStream, FileTypes.Zip.ContentType);
}
Ok then thank you.
I'm not sure about angular. You can try to set IsVisibleToClients of IdentityProSettingNames.Session.PreventConcurrentLogin to fasle
Unfortunately, this does not work. Do you have any other suggestions or is it not provided in the framework?
Thanks for the reply. I have done what you have suggested and it works perfectly.

Any updates on this topic?
Ok then, have a nice day!
Hi again,
Is there any progress on this issue?