20 lines
876 B
C#
20 lines
876 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 => ParseJsonFile<S3Cmd>("./Resources/s3ReadOnlyKey.json")!;
|
|
//
|
|
// private static T? ParseJsonFile<T>(String file)
|
|
// {
|
|
// var fileStream = OpenRead(file);
|
|
// return Deserialize<T>(fileStream);
|
|
// }
|
|
//
|
|
// public static S3Cmd ReadWrite => Deserialize<S3Cmd>(OpenRead("./Resources/s3ReadWriteKey.json"))!;
|
|
// public static S3Cmd Admin => Deserialize<S3Cmd>(OpenRead("./Resources/s3AdminKey.json"))!;
|
|
// } |