refacto name spaces

This commit is contained in:
Paul Schneider 2026-07-05 17:22:57 +01:00
commit 94eb8e2fff
108 changed files with 1839 additions and 282 deletions

View file

@ -2,7 +2,7 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using isn.abst;
using Isn.Abstract;
using isnd.Data;
using isnd.Data.Catalog;
using isnd.Entities;

View file

@ -2,23 +2,31 @@ using System;
using System.Collections.Generic;
using isnd.Entities;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Unleash;
using Unleash.ClientFactory;
namespace isnd.Helpers
{
/**
* Helper class for creating an Unleash client.
*/
public static class UnleashHelpers
{
/**
* Creates an Unleash client using the provided environment and settings.
* @param env The web host environment.
* @param unleashClientSettings The settings for the Unleash client.
* @returns An instance of IUnleash.
*/
public static IUnleash CreateUnleahClient(this IHostingEnvironment env,
public static IUnleash CreateUnleashClient(this IWebHostEnvironment env,
UnleashClientSettings unleashClientSettings)
{
var unleashSettings = new UnleashSettings
{
UnleashApi = new Uri(unleashClientSettings.ApiUrl),
AppName = "isnd",
Environment = env.EnvironmentName,
InstanceTag = env.EnvironmentName,
CustomHttpHeaders = new Dictionary<string, string>
{
{ "Authorization", unleashClientSettings.ClientApiKey }