Example #1
0
 public static Task <User[]> AllUsersAsync(JsonPlaceHolderHttpClient context, CancellationToken cancellationToken) =>
 context.GetAsync <User[]>("/users", cancellationToken);
Example #2
0
 public static DistributedCacheEntryOptions AllUsersCacheEntryOptions(JsonPlaceHolderHttpClient context) =>
 new DistributedCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.FromSeconds(30));