Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Remove unused code

support5b06a6f03e9c
diff --git a/src/Core/Grand.Infrastructure/Startup/StartupApplication.cs b/src/Core/Grand.Infrastructure/Startup/StartupApplication.cs
index 102acc97b..c7d1636e4 100644
--- a/src/Core/Grand.Infrastructure/Startup/StartupApplication.cs
+++ b/src/Core/Grand.Infrastructure/Startup/StartupApplication.cs
@@ -8,7 +8,6 @@ using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using MongoDB.Driver;
-using MongoDB.Driver.Core.Events;
namespace Grand.Infrastructure.Startup
{
@@ -54,7 +53,7 @@ namespace Grand.Infrastructure.Startup
var databaseName = mongourl.DatabaseName;
var clientSettings = MongoClientSettings.FromConnectionString(connectionString);
clientSettings.LinqProvider = MongoDB.Driver.Linq.LinqProvider.V3;
-
+
if (applicationInsights.Enabled)
clientSettings.ClusterConfigurator = builder => { builder.Subscribe(new ApplicationInsightsSubscriber(serviceCollection)); };
@@ -91,20 +90,5 @@ namespace Grand.Infrastructure.Startup
}
}
- private void CmdStartHandlerForFindCommand(CommandStartedEvent cmdStart)
- {
- if (cmdStart.CommandName == "find")
- {
- //WriteToConsole(cmdStart.Command, "request");
- }
- }
-
- private void CmdSuccessHandlerForFindCommand(CommandSucceededEvent cmdSuccess)
- {
- if (cmdSuccess.CommandName == "find")
- {
- //WriteToConsole(cmdSuccess.Reply, "response");
- }
- }
}
}