Remove Extensions class and update namespace references from Helpers to Helper for consistency

This commit is contained in:
Andre Beging
2025-12-11 19:06:41 +01:00
parent 46229a6dc7
commit 05b92e8f54
9 changed files with 11 additions and 52 deletions

View File

@@ -1,6 +1,6 @@
namespace FsToolbox.Cli.Tasks
{
public partial class RegionTasks
public static partial class RegionTasks
{
#region Record Store

View File

@@ -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

View File

@@ -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
{

View File

@@ -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);