Skip to content

Commit

Permalink
update sample project
Browse files Browse the repository at this point in the history
  • Loading branch information
romansp committed Oct 21, 2022
1 parent 166cede commit 4ea060e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 42 deletions.
3 changes: 2 additions & 1 deletion samples/Sample.Elasticsearch.Core/Program.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
using Nest;
using StackExchange.Profiling;

var builder = WebApplication.CreateBuilder(args);

var services = builder.Services;
services.AddControllersWithViews();
services.AddMiniProfiler().AddElastic();
services.AddMiniProfiler(options => options.ExcludeElasticAssemblies()).AddElastic();
services.AddSingleton<IElasticClient>(_ => {
var node = new Uri("http://localhost:9200");
var connectionSettings = new ConnectionSettings(node).DefaultIndex("elasticsearch-sample");
Expand Down
41 changes: 0 additions & 41 deletions samples/Sample.Elasticsearch.Core/Startup.cs

This file was deleted.

0 comments on commit 4ea060e

Please sign in to comment.