17 lines
703 B
C#
17 lines
703 B
C#
using System.Diagnostics.CodeAnalysis;
|
|
using static System.IO.File;
|
|
using static System.Text.Json.JsonSerializer;
|
|
|
|
namespace InnovEnergy.App.Backend.S3;
|
|
|
|
[SuppressMessage("Trimming", "IL2026:Members annotated with \'RequiresUnreferencedCodeAttribute\' require dynamic access otherwise can break functionality when trimming application code")]
|
|
public static class S3Access
|
|
{
|
|
public static S3Cmd ReadOnly => Deserialize<S3Cmd>(OpenRead("./Resources/s3ReadOnlyKey.json"))!;
|
|
public static S3Cmd ReadWrite => Deserialize<S3Cmd>(OpenRead("./Resources/s3ReadWriteKey.json"))!;
|
|
|
|
public static async Task<String> CreateKey(String bucketName)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
} |