From 58adaaf0c292fd67dcea9892215f063e9a279c65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Tue, 28 Sep 2021 22:43:51 +0300 Subject: [PATCH 01/18] =?UTF-8?q?=E2=99=BB=20Change=20Request=20Url=20valu?= =?UTF-8?q?e=20from=20path=20to=20get=20endpoint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Interceptors/EasyProfilerInterceptors.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EasyProfiler.PostgreSQL/Interceptors/EasyProfilerInterceptors.cs b/src/EasyProfiler.PostgreSQL/Interceptors/EasyProfilerInterceptors.cs index 7689334..9a2f9aa 100644 --- a/src/EasyProfiler.PostgreSQL/Interceptors/EasyProfilerInterceptors.cs +++ b/src/EasyProfiler.PostgreSQL/Interceptors/EasyProfilerInterceptors.cs @@ -44,7 +44,7 @@ public override InterceptionResult DataReaderDisposing(DbCommand command, DataRe { Duration = eventData.Duration.Ticks, Query = command.CommandText, - RequestUrl = httpContextAccessor?.HttpContext?.Request?.Path.Value, + RequestUrl = httpContextAccessor?.HttpContext?.GetEndpoint()?.DisplayName ?? "Not Http", QueryType = command.FindQueryType(), EndDate = DateTime.UtcNow, StartDate = DateTime.UtcNow - eventData.Duration From 8ccf79ac44458949420fda908a10343a6cbf42dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Tue, 28 Sep 2021 23:01:40 +0300 Subject: [PATCH 02/18] =?UTF-8?q?=E2=99=BB=20Refactor=20namespace=20and=20?= =?UTF-8?q?add=20comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/DefaultController.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/samples/EasyProfiler.Web/Controllers/DefaultController.cs b/samples/EasyProfiler.Web/Controllers/DefaultController.cs index 26f0831..bf61622 100644 --- a/samples/EasyProfiler.Web/Controllers/DefaultController.cs +++ b/samples/EasyProfiler.Web/Controllers/DefaultController.cs @@ -4,18 +4,25 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System; -using System.Collections.Generic; -using System.Linq; using System.Threading.Tasks; namespace EasyProfiler.Web.Controllers { + /// + /// Default Controller + /// [ApiController] [Route("[controller]")] public class DefaultController : ControllerBase { private readonly SampleDbContext sampleDbContext; + /// + /// Ctor + /// + /// + /// DB Context + /// public DefaultController(SampleDbContext sampleDbContext) { this.sampleDbContext = sampleDbContext; @@ -62,7 +69,7 @@ public async Task GetAllCustomersAsync() /// /// Advanced filter model. /// - /// + /// /// Easy profiler service. /// /// From 7714c4f63a61e715822b5cc0b7f3ddbbed60e615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Tue, 28 Sep 2021 23:02:00 +0300 Subject: [PATCH 03/18] =?UTF-8?q?=E2=99=BB=20Refactor=20namespace=20and=20?= =?UTF-8?q?add=20comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- samples/EasyProfiler.Web/SampleDbContext.cs | 30 +++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/samples/EasyProfiler.Web/SampleDbContext.cs b/samples/EasyProfiler.Web/SampleDbContext.cs index fd42dad..e5096cc 100644 --- a/samples/EasyProfiler.Web/SampleDbContext.cs +++ b/samples/EasyProfiler.Web/SampleDbContext.cs @@ -6,16 +6,46 @@ namespace EasyProfiler.Web { + /// + /// Sample Db Context + /// public class SampleDbContext : DbContext { + /// + /// Ctor + /// + /// + /// DbContextOptions + /// public SampleDbContext(DbContextOptions options) : base(options) { } + /// + /// Ctor + /// protected SampleDbContext() { } + /// + /// Customer Table + /// public virtual DbSet Customers { get; set; } + + /// + /// OnModelCreating + /// + /// + /// Summary: + /// Provides a simple API surface for configuring a Microsoft.EntityFrameworkCore.Metadata.IMutableModel + /// that defines the shape of your entities, the relationships between them, and + /// how they map to the database. + /// You can use Microsoft.EntityFrameworkCore.ModelBuilder to construct a model for + /// a context by overriding Microsoft.EntityFrameworkCore.DbContext.OnModelCreating(Microsoft.EntityFrameworkCore.ModelBuilder) + /// on your derived context. Alternatively you can create the model externally and + /// set it on a Microsoft.EntityFrameworkCore.DbContextOptions instance that is passed + /// to the context constructor. + /// protected override void OnModelCreating(ModelBuilder modelBuilder) { modelBuilder.Entity(entity => From 412445afa8ab85df3961fe1e4a49868a510bd33a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Tue, 28 Sep 2021 23:02:20 +0300 Subject: [PATCH 04/18] =?UTF-8?q?=E2=99=BB=20Refactor=20namespace=20and=20?= =?UTF-8?q?add=20comment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- samples/EasyProfiler.Web/Startup.cs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/samples/EasyProfiler.Web/Startup.cs b/samples/EasyProfiler.Web/Startup.cs index 5fa31d7..d64f1c8 100644 --- a/samples/EasyProfiler.Web/Startup.cs +++ b/samples/EasyProfiler.Web/Startup.cs @@ -1,22 +1,16 @@ using AutoFilterer.Swagger; -using EasyProfiler.PostgreSQL.Context; using EasyProfiler.PostgreSQL.Extensions; using MarkdownDocumenting.Extensions; using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Hosting; -using Microsoft.AspNetCore.Http; using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; using System; -using System.Collections.Generic; using System.IO; -using System.Linq; using System.Reflection; -using System.Runtime.Intrinsics; using System.Text.Json.Serialization; -using System.Threading.Tasks; namespace EasyProfiler.Web { @@ -38,6 +32,10 @@ public Startup(IConfiguration configuration) { Configuration = configuration; } + /// + /// This method gets called by the runtime. Use this method to add services to the container. + /// + /// // This method gets called by the runtime. Use this method to add services to the container. // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940 public void ConfigureServices(IServiceCollection services) @@ -91,7 +89,11 @@ public void ConfigureServices(IServiceCollection services) services.AddDocumentation(); } - // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. + /// + /// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. + /// + /// + /// public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { app.ApplyEasyProfilerPostgreSQL(); From b02da45d7da8552a33b1d2dd38176fbab51ba7f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Tue, 28 Sep 2021 23:03:03 +0300 Subject: [PATCH 05/18] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20dotnet5=20?= =?UTF-8?q?on=20web=20project?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- samples/EasyProfiler.Web/EasyProfiler.Web.csproj | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/EasyProfiler.Web/EasyProfiler.Web.csproj b/samples/EasyProfiler.Web/EasyProfiler.Web.csproj index 5899cc8..d80e7c0 100644 --- a/samples/EasyProfiler.Web/EasyProfiler.Web.csproj +++ b/samples/EasyProfiler.Web/EasyProfiler.Web.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1 + net5.0 e3b4a23d-9c60-48fb-b05a-3a755149e281 Linux ..\.. @@ -12,15 +12,15 @@ - - + + - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + From e9e68ad5eeb8e23d524b12664a594001198a7432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Tue, 28 Sep 2021 23:03:15 +0300 Subject: [PATCH 06/18] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20dotnet5=20?= =?UTF-8?q?on=20Core=20project?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/EasyProfiler.Core/EasyProfiler.Core.csproj | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/EasyProfiler.Core/EasyProfiler.Core.csproj b/src/EasyProfiler.Core/EasyProfiler.Core.csproj index 01e9607..ba55b57 100644 --- a/src/EasyProfiler.Core/EasyProfiler.Core.csproj +++ b/src/EasyProfiler.Core/EasyProfiler.Core.csproj @@ -7,16 +7,12 @@ EasyProfiler.Core - - - - - + From c33cc4d887c59e7669bd49fa1aaebc624a97c103 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Tue, 28 Sep 2021 23:03:27 +0300 Subject: [PATCH 07/18] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20dotnet5=20?= =?UTF-8?q?on=20CronJob=20project?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/EasyProfiler.CronJob/EasyProfiler.CronJob.csproj | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/EasyProfiler.CronJob/EasyProfiler.CronJob.csproj b/src/EasyProfiler.CronJob/EasyProfiler.CronJob.csproj index d3c96c3..8a8d85f 100644 --- a/src/EasyProfiler.CronJob/EasyProfiler.CronJob.csproj +++ b/src/EasyProfiler.CronJob/EasyProfiler.CronJob.csproj @@ -2,11 +2,7 @@ - - - - - + From e01b0e118344e9dba5fc9072674495ffb43cb4fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Tue, 28 Sep 2021 23:13:10 +0300 Subject: [PATCH 08/18] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20dotnet5=20?= =?UTF-8?q?on=20EntityFrameworkCore=20project?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EasyProfiler.EntityFrameworkCore.csproj | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/EasyProfiler.EntityFrameworkCore/EasyProfiler.EntityFrameworkCore.csproj b/src/EasyProfiler.EntityFrameworkCore/EasyProfiler.EntityFrameworkCore.csproj index 9bef205..d4df751 100644 --- a/src/EasyProfiler.EntityFrameworkCore/EasyProfiler.EntityFrameworkCore.csproj +++ b/src/EasyProfiler.EntityFrameworkCore/EasyProfiler.EntityFrameworkCore.csproj @@ -1,18 +1,13 @@ - + EasyProfiler.EntityFrameworkCore - - - - - - - + + From fc57d2faacaceb4986f83b4ff59ffd31e95dd1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Tue, 28 Sep 2021 23:13:26 +0300 Subject: [PATCH 09/18] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20dotnet5=20?= =?UTF-8?q?on=20mariaDb=20project=20project?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Context/DesignTimeDbContext.cs | 2 +- src/EasyProfiler.MariaDb/EasyProfiler.MariaDb.csproj | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/EasyProfiler.MariaDb/Context/DesignTimeDbContext.cs b/src/EasyProfiler.MariaDb/Context/DesignTimeDbContext.cs index 91ab010..4aba7a1 100644 --- a/src/EasyProfiler.MariaDb/Context/DesignTimeDbContext.cs +++ b/src/EasyProfiler.MariaDb/Context/DesignTimeDbContext.cs @@ -13,7 +13,7 @@ public ProfilerMariaDbContext CreateDbContext(string[] args) optionsBuilder.UseMySql("----"); #elif NET5_0_OR_GREATER // TODO: Remove here if not necessary. - optionsBuilder.UseMySql("----", ServerVersion.FromString("10.5.9")); + optionsBuilder.UseMySql("----", ServerVersion.AutoDetect("10.5.9")); #endif return new ProfilerMariaDbContext(optionsBuilder.Options); diff --git a/src/EasyProfiler.MariaDb/EasyProfiler.MariaDb.csproj b/src/EasyProfiler.MariaDb/EasyProfiler.MariaDb.csproj index 06f3af3..7f97181 100644 --- a/src/EasyProfiler.MariaDb/EasyProfiler.MariaDb.csproj +++ b/src/EasyProfiler.MariaDb/EasyProfiler.MariaDb.csproj @@ -7,19 +7,14 @@ EasyProfiler.MariaDb - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - From da00bdca879d6858b261ba7eed5cdbee51e08e68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Tue, 28 Sep 2021 23:13:39 +0300 Subject: [PATCH 10/18] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20dotnet5=20?= =?UTF-8?q?on=20mongo=20project?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/EasyProfiler.Mongo/EasyProfiler.Mongo.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EasyProfiler.Mongo/EasyProfiler.Mongo.csproj b/src/EasyProfiler.Mongo/EasyProfiler.Mongo.csproj index 0201082..13c62da 100644 --- a/src/EasyProfiler.Mongo/EasyProfiler.Mongo.csproj +++ b/src/EasyProfiler.Mongo/EasyProfiler.Mongo.csproj @@ -8,7 +8,7 @@ - + From d5d690e12bc3d66b01b55ff68cc3ee921726f1d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Tue, 28 Sep 2021 23:13:53 +0300 Subject: [PATCH 11/18] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20dotnet5=20?= =?UTF-8?q?on=20PostgreSql=20project?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EasyProfiler.PostgreSQL.csproj | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/EasyProfiler.PostgreSQL/EasyProfiler.PostgreSQL.csproj b/src/EasyProfiler.PostgreSQL/EasyProfiler.PostgreSQL.csproj index 021883f..5883e97 100644 --- a/src/EasyProfiler.PostgreSQL/EasyProfiler.PostgreSQL.csproj +++ b/src/EasyProfiler.PostgreSQL/EasyProfiler.PostgreSQL.csproj @@ -7,20 +7,12 @@ EasyProfiler.PostgreSQL - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + From 8347254261de0098bcb6ff369357128f30b51b08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Tue, 28 Sep 2021 23:14:21 +0300 Subject: [PATCH 12/18] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Upgrade=20dotnet5=20?= =?UTF-8?q?on=20Sql=20Server=20project?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EasyProfiler.SQLServer.csproj | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/EasyProfiler.SQLServer/EasyProfiler.SQLServer.csproj b/src/EasyProfiler.SQLServer/EasyProfiler.SQLServer.csproj index 25e27ee..04221a6 100644 --- a/src/EasyProfiler.SQLServer/EasyProfiler.SQLServer.csproj +++ b/src/EasyProfiler.SQLServer/EasyProfiler.SQLServer.csproj @@ -7,17 +7,9 @@ EasyProfiler.SQLServer - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive From c25b064a5d9937dd55e3272858ba62972b180175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Tue, 28 Sep 2021 23:14:35 +0300 Subject: [PATCH 13/18] =?UTF-8?q?=F0=9F=94=A7=20Update=20common.props?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.props b/common.props index 2f9548b..f15818d 100644 --- a/common.props +++ b/common.props @@ -1,6 +1,6 @@ - netcoreapp3.1;net5.0 + net5.0 2.0.0 latest false From a381132ea7c10d4f15a6cb0b617f7f0d821aaffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Sat, 2 Oct 2021 19:54:46 +0300 Subject: [PATCH 14/18] =?UTF-8?q?=E2=99=BB=20Change=20request=20url=20prop?= =?UTF-8?q?erty=20set=20scenario=20from=20path=20value=20to=20get=20endpoi?= =?UTF-8?q?nt=20for=20mariadb=20provider?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Interceptors/EasyProfilerInterceptors.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EasyProfiler.MariaDb/Interceptors/EasyProfilerInterceptors.cs b/src/EasyProfiler.MariaDb/Interceptors/EasyProfilerInterceptors.cs index f6da46e..c06a447 100644 --- a/src/EasyProfiler.MariaDb/Interceptors/EasyProfilerInterceptors.cs +++ b/src/EasyProfiler.MariaDb/Interceptors/EasyProfilerInterceptors.cs @@ -27,7 +27,7 @@ public override InterceptionResult DataReaderDisposing(DbCommand command, DataRe { Duration = eventData.Duration.Ticks, Query = command.CommandText, - RequestUrl = httpContextAccessor?.HttpContext?.Request?.Path.Value, + RequestUrl = httpContextAccessor?.HttpContext?.GetEndpoint()?.DisplayName ?? "Not Http", QueryType = command.FindQueryType(), EndDate = DateTime.UtcNow, StartDate = DateTime.UtcNow - eventData.Duration From 164c83d78834a5efd07ae62157b5e7c43e80e7c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Sat, 2 Oct 2021 21:07:21 +0300 Subject: [PATCH 15/18] =?UTF-8?q?=E2=99=BB=20Change=20request=20url=20prop?= =?UTF-8?q?erty=20set=20scenario=20from=20path=20value=20to=20get=20endpoi?= =?UTF-8?q?nt=20for=20mongo=20provider?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/EasyProfiler.Mongo/Extensions/ClusterBuilderExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EasyProfiler.Mongo/Extensions/ClusterBuilderExtensions.cs b/src/EasyProfiler.Mongo/Extensions/ClusterBuilderExtensions.cs index 00890c4..e1decbd 100644 --- a/src/EasyProfiler.Mongo/Extensions/ClusterBuilderExtensions.cs +++ b/src/EasyProfiler.Mongo/Extensions/ClusterBuilderExtensions.cs @@ -61,7 +61,7 @@ public static void InitilazeSucceededEvent(this CommandSucceededEvent command, I Duration = command.Duration.Ticks, Query = data.ToString(), QueryType = command.CommandName.FindQueryType(), - RequestUrl = httpContext?.HttpContext?.Request?.Path.Value, + RequestUrl = httpContext?.HttpContext?.GetEndpoint()?.DisplayName ?? "Not Http", EndDate = DateTime.UtcNow, StartDate = DateTime.UtcNow - command.Duration }); From f0cdaab1fb52343af7cb475f0fe491c8249425f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Sat, 2 Oct 2021 21:07:53 +0300 Subject: [PATCH 16/18] =?UTF-8?q?=E2=99=BB=20Change=20request=20url=20prop?= =?UTF-8?q?erty=20set=20scenario=20from=20path=20value=20to=20get=20endpoi?= =?UTF-8?q?nt=20for=20sql=20server=20provider?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Interceptors/EasyProfilerInterceptors.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EasyProfiler.SQLServer/Interceptors/EasyProfilerInterceptors.cs b/src/EasyProfiler.SQLServer/Interceptors/EasyProfilerInterceptors.cs index e21ae9f..f475b97 100644 --- a/src/EasyProfiler.SQLServer/Interceptors/EasyProfilerInterceptors.cs +++ b/src/EasyProfiler.SQLServer/Interceptors/EasyProfilerInterceptors.cs @@ -30,7 +30,7 @@ public override InterceptionResult DataReaderDisposing(DbCommand command, DataRe { Duration = eventData.Duration.Ticks, Query = command.CommandText, - RequestUrl = httpContextAccessor?.HttpContext?.Request?.Path.Value, + RequestUrl = httpContextAccessor?.HttpContext?.GetEndpoint()?.DisplayName ?? "Not Http", QueryType = command.FindQueryType(), EndDate = DateTime.UtcNow, StartDate = DateTime.UtcNow - eventData.Duration From bc66979866f3744d73a1c855bf72edcf3a89ae10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Sat, 2 Oct 2021 21:22:53 +0300 Subject: [PATCH 17/18] =?UTF-8?q?=F0=9F=94=A7=20Upgrade=20library=20versio?= =?UTF-8?q?n=20from=202.0.0=20to=202.1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.props b/common.props index f15818d..7de0501 100644 --- a/common.props +++ b/common.props @@ -1,7 +1,7 @@ net5.0 - 2.0.0 + 2.1.0 latest false https://github.com/furkandeveloper/EasyProfiler From a875727a5e88a130fcc603fde061e35e05c500e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Sat, 2 Oct 2021 21:24:19 +0300 Subject: [PATCH 18/18] =?UTF-8?q?=F0=9F=93=9D=20Add=20version=20doc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common.props | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/common.props b/common.props index 7de0501..41303a3 100644 --- a/common.props +++ b/common.props @@ -9,12 +9,8 @@ This repo, provides query profiler for .Net mariadb, profiler, query-profiler,query-analyzer - ## This release includes breaking changes; - - ♻ Refactor base scenario. - ♻ Add CronJob service for database tracking. - ♻ Update Profiler Database schema. - ♻ Change Profiler Db Context. + 🔥 Removes .Net Core 3.x support + ♻ Change request url property set scenario from path value to get endpoint information from all providers