Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 0b95682

Browse files
committed
Refactoring extensions method
1 parent 806c8fa commit 0b95682

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

src/NET6CustomLibrary/Extensions/DependencyInjection.cs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
1-
using System.ComponentModel;
2-
using System.Net.Mime;
3-
using Microsoft.AspNetCore.Builder;
4-
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
5-
using Microsoft.AspNetCore.Http;
6-
using Microsoft.AspNetCore.Routing;
7-
using Microsoft.Extensions.Diagnostics.HealthChecks;
8-
using Microsoft.OpenApi.Any;
9-
using Microsoft.OpenApi.Models;
10-
using MySqlConnector;
11-
using NET6CustomLibrary.DateTime.Converters;
12-
using NET6CustomLibrary.DateTime.TypeConverters;
13-
using NET6CustomLibrary.EFCore.Infrastructure.Repository;
14-
using NET6CustomLibrary.Serilog.Services;
15-
using Serilog;
16-
using Swashbuckle.AspNetCore.SwaggerGen;
17-
18-
namespace NET6CustomLibrary.Extensions;
1+
namespace NET6CustomLibrary.Extensions;
192

203
public static class DependencyInjection
214
{

src/NET6CustomLibrary/GlobalUsings.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,34 @@
33
global using System.ComponentModel;
44
global using System.Globalization;
55
global using System.Linq;
6+
global using System.Net.Mime;
67
global using System.Text;
78
global using System.Text.Json;
89
global using System.Text.Json.Serialization;
910
global using System.Threading;
1011
global using System.Threading.Tasks;
1112
global using EFCoreGeneric.Infrastructure.Interfaces;
13+
global using Microsoft.AspNetCore.Builder;
14+
global using Microsoft.AspNetCore.Diagnostics.HealthChecks;
15+
global using Microsoft.AspNetCore.Http;
16+
global using Microsoft.AspNetCore.Routing;
1217
global using Microsoft.EntityFrameworkCore;
1318
global using Microsoft.Extensions.DependencyInjection;
19+
global using Microsoft.Extensions.Diagnostics.HealthChecks;
1420
global using Microsoft.Extensions.Hosting;
1521
global using Microsoft.Extensions.Logging;
22+
global using Microsoft.OpenApi.Any;
23+
global using Microsoft.OpenApi.Models;
24+
global using MySqlConnector;
25+
global using NET6CustomLibrary.DateTime.Converters;
26+
global using NET6CustomLibrary.DateTime.TypeConverters;
1627
global using NET6CustomLibrary.EFCore.Core;
1728
global using NET6CustomLibrary.EFCore.Core.Interfaces;
1829
global using NET6CustomLibrary.EFCore.Infrastructure.Interfaces;
30+
global using NET6CustomLibrary.EFCore.Infrastructure.Repository;
1931
global using NET6CustomLibrary.RabbitMQ.Abstractions;
32+
global using NET6CustomLibrary.Serilog.Services;
2033
global using RabbitMQ.Client;
2134
global using RabbitMQ.Client.Events;
35+
global using Serilog;
36+
global using Swashbuckle.AspNetCore.SwaggerGen;

0 commit comments

Comments
 (0)