This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GifImageInfo | |
{ | |
public int Width { get; set; } | |
public int Height { get; set; } | |
public bool IsAnimated { get; set; } | |
public bool IsLooped { get; set; } | |
public int? LoopCount { get; set; } | |
public TimeSpan? AnimationLength { get; set; } | |
public TimeSpan? TotalAnimationLength => IsLooped ? AnimationLength * LoopCount : AnimationLength; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static async Task Main(string[] args) | |
{ | |
var options = new GraphQLHttpClientOptions | |
{ | |
EndPoint = new Uri("https://countries.trevorblades.com/"), | |
HttpMessageHandler = new AWS4SignerMessageHandler( | |
new AmazonAppSyncClient(), | |
"--awsAccessKeyId--", | |
"--awsSecretAccessKey--") | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Amazon.Lambda.Core; | |
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Text; | |
using System.Threading.Tasks; |