Skip to content

Commit

Permalink
refractor: fix namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
tnotheis committed Oct 17, 2023
1 parent cf15c5a commit 62588f9
Show file tree
Hide file tree
Showing 890 changed files with 1,942 additions and 1,937 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// <auto-generated />
using System;
using AdminUi.Infrastructure.Persistence.Database;
using Backbone.AdminUi.Infrastructure.Persistence.Database;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// <auto-generated />
using System;
using AdminUi.Infrastructure.Persistence.Database;
using Backbone.AdminUi.Infrastructure.Persistence.Database;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// <auto-generated />
using AdminUi.Infrastructure.Persistence.Database;

using Backbone.AdminUi.Infrastructure.Persistence.Database;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// <auto-generated />
using System;
using System.Reflection;
using AdminUi.Infrastructure.DTOs;
using Enmeshed.BuildingBlocks.Infrastructure.Persistence.Database.ValueConverters;
using Backbone.AdminUi.Infrastructure.DTOs;
using Backbone.BuildingBlocks.Infrastructure.Persistence.Database.ValueConverters;
using Microsoft.EntityFrameworkCore.Metadata;

#pragma warning disable 219, 612, 618
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// <auto-generated />
using System;
using System.Reflection;
using AdminUi.Infrastructure.DTOs;
using Enmeshed.BuildingBlocks.Infrastructure.Persistence.Database.ValueConverters;
using Backbone.AdminUi.Infrastructure.DTOs;
using Backbone.BuildingBlocks.Infrastructure.Persistence.Database.ValueConverters;
using Microsoft.EntityFrameworkCore.Metadata;

#pragma warning disable 219, 612, 618
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// <auto-generated />
using System;
using System.Reflection;
using AdminUi.Infrastructure.DTOs;
using Backbone.AdminUi.Infrastructure.DTOs;
using Microsoft.EntityFrameworkCore.Metadata;

#pragma warning disable 219, 612, 618
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// <auto-generated />
using AdminUi.Infrastructure.Persistence.Database;

using Backbone.AdminUi.Infrastructure.Persistence.Database;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// <auto-generated />
using System;
using System.Reflection;
using AdminUi.Infrastructure.DTOs;
using Enmeshed.BuildingBlocks.Infrastructure.Persistence.Database.ValueConverters;
using Backbone.AdminUi.Infrastructure.DTOs;
using Backbone.BuildingBlocks.Infrastructure.Persistence.Database.ValueConverters;
using Microsoft.EntityFrameworkCore.Metadata;

#pragma warning disable 219, 612, 618
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// <auto-generated />
using System;
using System.Reflection;
using AdminUi.Infrastructure.DTOs;
using Enmeshed.BuildingBlocks.Infrastructure.Persistence.Database.ValueConverters;
using Backbone.AdminUi.Infrastructure.DTOs;
using Backbone.BuildingBlocks.Infrastructure.Persistence.Database.ValueConverters;
using Microsoft.EntityFrameworkCore.Metadata;

#pragma warning disable 219, 612, 618
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// <auto-generated />
using System;
using System.Reflection;
using AdminUi.Infrastructure.DTOs;
using Backbone.AdminUi.Infrastructure.DTOs;
using Microsoft.EntityFrameworkCore.Metadata;

#pragma warning disable 219, 612, 618
Expand Down
2 changes: 1 addition & 1 deletion AdminUi/src/AdminUi.Infrastructure/DTOs/ClientOverview.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AdminUi.Infrastructure.DTOs;
namespace Backbone.AdminUi.Infrastructure.DTOs;
public class ClientOverview
{
public string ClientId { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AdminUi.Infrastructure.DTOs;
namespace Backbone.AdminUi.Infrastructure.DTOs;

public class IdentityOverview
{
Expand Down
2 changes: 1 addition & 1 deletion AdminUi/src/AdminUi.Infrastructure/DTOs/TierOverview.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace AdminUi.Infrastructure.DTOs;
namespace Backbone.AdminUi.Infrastructure.DTOs;
public class TierOverview
{
public string Id { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using AdminUi.Infrastructure.DTOs;
using Enmeshed.BuildingBlocks.Infrastructure.Persistence.Database;
using Backbone.AdminUi.Infrastructure.DTOs;
using Backbone.BuildingBlocks.Infrastructure.Persistence.Database;
using Microsoft.EntityFrameworkCore;

namespace AdminUi.Infrastructure.Persistence.Database;
namespace Backbone.AdminUi.Infrastructure.Persistence.Database;

public class AdminUiDbContext : AbstractDbContextBase
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using AdminUi.Infrastructure.DTOs;
using Backbone.AdminUi.Infrastructure.DTOs;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace AdminUi.Infrastructure.Persistence.Database.EntityTypeConfigurations;
namespace Backbone.AdminUi.Infrastructure.Persistence.Database.EntityTypeConfigurations;
public class ClientOverviewEntityTypeConfiguration : IEntityTypeConfiguration<ClientOverview>
{
public void Configure(EntityTypeBuilder<ClientOverview> builder)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using AdminUi.Infrastructure.DTOs;
using Backbone.AdminUi.Infrastructure.DTOs;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace AdminUi.Infrastructure.Persistence.Database.EntityTypeConfigurations;
namespace Backbone.AdminUi.Infrastructure.Persistence.Database.EntityTypeConfigurations;

public class IdentityOverviewEntityTypeConfiguration : IEntityTypeConfiguration<IdentityOverview>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using AdminUi.Infrastructure.DTOs;
using Backbone.AdminUi.Infrastructure.DTOs;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace AdminUi.Infrastructure.Persistence.Database.EntityTypeConfigurations;
namespace Backbone.AdminUi.Infrastructure.Persistence.Database.EntityTypeConfigurations;

public class TierOverviewEntityTypeConfiguration : IEntityTypeConfiguration<TierOverview>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using AdminUi.Infrastructure.Persistence.Database;
using Backbone.AdminUi.Infrastructure.Persistence.Database;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;

namespace AdminUi.Infrastructure.Persistence;
namespace Backbone.AdminUi.Infrastructure.Persistence;

public static class IServiceCollectionExtensions
{
Expand Down Expand Up @@ -38,15 +38,15 @@ public static IServiceCollection AddDatabase(this IServiceCollection services, A
sqlOptions.CommandTimeout(20);
sqlOptions.MigrationsAssembly(SQLSERVER_MIGRATIONS_ASSEMBLY);
sqlOptions.EnableRetryOnFailure(options.RetryOptions.MaxRetryCount, TimeSpan.FromSeconds(options.RetryOptions.MaxRetryDelayInSeconds), null);
}).UseModel(CompiledModels.SqlServer.AdminUiDbContextModel.Instance);
}).UseModel(global::AdminUi.Infrastructure.CompiledModels.SqlServer.AdminUiDbContextModel.Instance);
break;
case POSTGRES:
dbContextOptions.UseNpgsql(options.ConnectionString, sqlOptions =>
{
sqlOptions.CommandTimeout(20);
sqlOptions.MigrationsAssembly(POSTGRES_MIGRATIONS_ASSEMBLY);
sqlOptions.EnableRetryOnFailure(options.RetryOptions.MaxRetryCount, TimeSpan.FromSeconds(options.RetryOptions.MaxRetryDelayInSeconds), null);
}).UseModel(CompiledModels.Postgres.AdminUiDbContextModel.Instance);
}).UseModel(global::AdminUi.Infrastructure.CompiledModels.Postgres.AdminUiDbContextModel.Instance);
break;
default:
throw new Exception($"Unsupported database provider: {options.Provider}");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.ComponentModel.DataAnnotations;

namespace AdminUi.Infrastructure.Persistence;
namespace Backbone.AdminUi.Infrastructure.Persistence;

public class SqlDatabaseConfiguration
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.AspNetCore.Authentication;
using Microsoft.Extensions.Options;

namespace AdminUi.Authentication;
namespace Backbone.AdminUi.Authentication;

public class ApiKeyAuthenticationSchemeOptions : AuthenticationSchemeOptions
{
Expand Down
2 changes: 1 addition & 1 deletion AdminUi/src/AdminUi/Authentication/ApiKeyValidator.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Extensions.Options;

namespace AdminUi.Authentication;
namespace Backbone.AdminUi.Authentication;

public class ApiKeyValidator
{
Expand Down
6 changes: 3 additions & 3 deletions AdminUi/src/AdminUi/Configuration/AdminConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.ComponentModel.DataAnnotations;
using AdminUi.Infrastructure.Persistence;
using Backbone.Infrastructure.EventBus;
using Backbone.AdminUi.Infrastructure.Persistence;
using Backbone.Backbone.Infrastructure.EventBus;

namespace AdminUi.Configuration;
namespace Backbone.AdminUi.Configuration;

public class AdminConfiguration
{
Expand Down
2 changes: 1 addition & 1 deletion AdminUi/src/AdminUi/Configuration/DevicesConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations;
using Backbone.Modules.Devices.Application;

namespace AdminUi.Configuration;
namespace Backbone.AdminUi.Configuration;

public class DevicesConfiguration
{
Expand Down
2 changes: 1 addition & 1 deletion AdminUi/src/AdminUi/Configuration/QuotasConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.ComponentModel.DataAnnotations;
using Backbone.Modules.Quotas.Application;

namespace AdminUi.Configuration;
namespace Backbone.AdminUi.Configuration;

public class QuotasConfiguration
{
Expand Down
4 changes: 2 additions & 2 deletions AdminUi/src/AdminUi/Controllers/ApiKeyValidationController.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using AdminUi.Authentication;
using Backbone.AdminUi.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace AdminUi.Controllers;
namespace Backbone.AdminUi.Controllers;

[Route("api/v1/ValidateApiKey")]
public class ApiKeyValidationController : ControllerBase
Expand Down
12 changes: 6 additions & 6 deletions AdminUi/src/AdminUi/Controllers/ClientsController.cs
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
using AdminUi.Infrastructure.DTOs;
using AdminUi.Infrastructure.Persistence.Database;
using Backbone.AdminUi.Infrastructure.DTOs;
using Backbone.AdminUi.Infrastructure.Persistence.Database;
using Backbone.BuildingBlocks.API;
using Backbone.BuildingBlocks.API.Mvc;
using Backbone.BuildingBlocks.API.Mvc.ControllerAttributes;
using Backbone.Modules.Devices.Application.Clients.Commands.ChangeClientSecret;
using Backbone.Modules.Devices.Application.Clients.Commands.CreateClient;
using Backbone.Modules.Devices.Application.Clients.Commands.DeleteClient;
using Backbone.Modules.Devices.Application.Clients.Commands.UpdateClient;
using Backbone.Modules.Devices.Application.Clients.DTOs;
using Backbone.Modules.Devices.Application.Clients.Queries.GetClient;
using Enmeshed.BuildingBlocks.API;
using Enmeshed.BuildingBlocks.API.Mvc;
using Enmeshed.BuildingBlocks.API.Mvc.ControllerAttributes;
using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;

namespace AdminUi.Controllers;
namespace Backbone.AdminUi.Controllers;

[Route("api/v1/[controller]")]
[Authorize("ApiKey")]
Expand Down
2 changes: 1 addition & 1 deletion AdminUi/src/AdminUi/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Mvc;

namespace AdminUi.Controllers;
namespace Backbone.AdminUi.Controllers;

[Controller]
[Route("")]
Expand Down
20 changes: 10 additions & 10 deletions AdminUi/src/AdminUi/Controllers/IdentitiesController.cs
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
using AdminUi.Infrastructure.DTOs;
using AdminUi.Infrastructure.Persistence.Database;
using Backbone.AdminUi.Infrastructure.DTOs;
using Backbone.AdminUi.Infrastructure.Persistence.Database;
using Backbone.BuildingBlocks.API;
using Backbone.BuildingBlocks.API.Mvc;
using Backbone.BuildingBlocks.API.Mvc.ControllerAttributes;
using Backbone.BuildingBlocks.Application.Abstractions.Exceptions;
using Backbone.BuildingBlocks.Application.Extensions;
using Backbone.BuildingBlocks.Application.Pagination;
using Backbone.Modules.Devices.Application;
using Backbone.Modules.Devices.Application.Devices.DTOs;
using Backbone.Modules.Devices.Application.Identities.Commands.UpdateIdentity;
using Backbone.Modules.Quotas.Application.DTOs;
using Backbone.Modules.Quotas.Application.Tiers.Commands.CreateQuotaForIdentity;
using Backbone.Modules.Quotas.Application.Tiers.Commands.DeleteQuotaForIdentity;
using Backbone.Modules.Quotas.Domain.Aggregates.Identities;
using Enmeshed.BuildingBlocks.API;
using Enmeshed.BuildingBlocks.API.Mvc;
using Enmeshed.BuildingBlocks.API.Mvc.ControllerAttributes;
using Enmeshed.BuildingBlocks.Application.Abstractions.Exceptions;
using Enmeshed.BuildingBlocks.Application.Extensions;
using Enmeshed.BuildingBlocks.Application.Pagination;
using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using ApplicationException = Enmeshed.BuildingBlocks.Application.Abstractions.Exceptions.ApplicationException;
using ApplicationException = Backbone.BuildingBlocks.Application.Abstractions.Exceptions.ApplicationException;
using GetIdentityQueryDevices = Backbone.Modules.Devices.Application.Identities.Queries.GetIdentity.GetIdentityQuery;
using GetIdentityQueryQuotas = Backbone.Modules.Quotas.Application.Identities.Queries.GetIdentity.GetIdentityQuery;
using GetIdentityResponseDevices = Backbone.Modules.Devices.Application.Identities.Queries.GetIdentity.GetIdentityResponse;
using GetIdentityResponseQuotas = Backbone.Modules.Quotas.Application.Identities.Queries.GetIdentity.GetIdentityResponse;

namespace AdminUi.Controllers;
namespace Backbone.AdminUi.Controllers;

[Route("api/v1/[controller]")]
[Authorize("ApiKey")]
Expand Down
Loading

0 comments on commit 62588f9

Please sign in to comment.