Skip to content

API endpoints for storing/retrieving license metadata#5631

Open
PhilBastian wants to merge 10 commits into
masterfrom
licensed_endpoints
Open

API endpoints for storing/retrieving license metadata#5631
PhilBastian wants to merge 10 commits into
masterfrom
licensed_endpoints

Conversation

@PhilBastian

Copy link
Copy Markdown
Contributor

also change max monthly usage to average monthly usage

@PhilBastian PhilBastian self-assigned this Jul 21, 2026
using var fileStream = file.OpenReadStream();
using var fileStreamReader = new StreamReader(fileStream);
var compressed = await fileStreamReader.ReadToEndAsync(cancellationToken);
var compressedData = Convert.FromBase64String(compressed);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably don't need the Base64 conversion when we aren't embedding details in the license file.

That means we could hook the BrotliStream directly to the fileStream.

It may be worth trying to pass that into the deserializer as well. That way we avoid creating big in-memory string objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants