Implemented SignalR scaling using redis. Improved diagnose report generator. Added SignalR debug card in Diagnose page
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Moonlight.ApiServer.Extensions;
|
||||
|
||||
public static class ZipArchiveExtensions
|
||||
{
|
||||
public static async Task AddBinary(this ZipArchive archive, string name, byte[] bytes)
|
||||
public static async Task AddBinaryAsync(this ZipArchive archive, string name, byte[] bytes)
|
||||
{
|
||||
var entry = archive.CreateEntry(name);
|
||||
await using var dataStream = entry.Open();
|
||||
@@ -14,13 +14,13 @@ public static class ZipArchiveExtensions
|
||||
await dataStream.FlushAsync();
|
||||
}
|
||||
|
||||
public static async Task AddText(this ZipArchive archive, string name, string content)
|
||||
public static async Task AddTextAsync(this ZipArchive archive, string name, string content)
|
||||
{
|
||||
var data = Encoding.UTF8.GetBytes(content);
|
||||
await archive.AddBinary(name, data);
|
||||
await archive.AddBinaryAsync(name, data);
|
||||
}
|
||||
|
||||
public static async Task AddFile(this ZipArchive archive, string name, string path)
|
||||
public static async Task AddFileAsync(this ZipArchive archive, string name, string path)
|
||||
{
|
||||
var fs = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user