Remove Extensions class and update namespace references from Helpers to Helper for consistency
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
namespace FsToolbox.Cli.Tasks
|
||||
{
|
||||
public partial class RegionTasks
|
||||
public static partial class RegionTasks
|
||||
{
|
||||
#region Record Store
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Nodes;
|
||||
using FsToolbox.Cli.Helpers;
|
||||
using FsToolbox.Cli.Helper;
|
||||
|
||||
namespace FsToolbox.Cli.Tasks
|
||||
{
|
||||
public partial class RegionTasks
|
||||
public static partial class RegionTasks
|
||||
{
|
||||
#region Public Method GetStoresInRegionAsync
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Net.Http.Json;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Nodes;
|
||||
using FsToolbox.Cli.Helpers;
|
||||
using FsToolbox.Cli.Helper;
|
||||
|
||||
namespace FsToolbox.Cli.Tasks
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Net.Http.Json;
|
||||
using FsToolbox.Cli.Helpers;
|
||||
using FsToolbox.Cli.Helper;
|
||||
|
||||
namespace FsToolbox.Cli.Tasks
|
||||
{
|
||||
@@ -76,7 +76,7 @@ namespace FsToolbox.Cli.Tasks
|
||||
var expiryEntry = cookies.FirstOrDefault(c => c.Trim().StartsWith("expires="));
|
||||
var expireString = expiryEntry?.Split('=')[1];
|
||||
if (DateTime.TryParse(expireString, out var expiration))
|
||||
await FsToolbox.Cli.Helpers.AuthHelper.StoreCsrfTokenAsync(csrfToken, expiration);
|
||||
await AuthHelper.StoreCsrfTokenAsync(csrfToken, expiration);
|
||||
}
|
||||
|
||||
return csrfToken;
|
||||
@@ -89,7 +89,7 @@ namespace FsToolbox.Cli.Tasks
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
public static async Task GetCurrentUserAsync(HttpClient httpClient)
|
||||
{
|
||||
await FsToolbox.Cli.Helpers.AuthHelper.EnsureAuthenticationAsync(httpClient);
|
||||
await AuthHelper.EnsureAuthenticationAsync(httpClient);
|
||||
|
||||
var response = await httpClient.GetAsync(Endpoints.UserCurrent);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user