Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add elasticsearch hosting #4430

Merged
merged 62 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
2141fb5
add elasticsearch hosting
Alirexaa Jun 8, 2024
ca9709c
Add password support to elasticsearch resource
Alirexaa Jun 9, 2024
1f11711
Update ElasticsearchBuilderExtensions.cs
mitchdenny Jun 10, 2024
287e364
fix typo,variable name,add example docs,add aspire-manifest.json
Alirexaa Jun 10, 2024
0ca1018
Update src/Aspire.Hosting.Elasticsearch/ElasticsearchContainerImageTa…
Alirexaa Jun 11, 2024
b8716a4
Update src/Aspire.Hosting.Elasticsearch/ElasticsearchResource.cs
Alirexaa Jun 11, 2024
abc9e83
Change Elasticsearch username to constant
Alirexaa Jun 12, 2024
72d8e01
Update Elasticsearch playground
Alirexaa Jun 12, 2024
6026ca1
Update Elasticseach playground aspire-manifest
Alirexaa Jun 12, 2024
cb16e86
Merge branch 'dotnet:main' into elasticsearch-hosing
Alirexaa Jun 13, 2024
0d8d276
Add Aspire.Elastic.Clints.Elasticsearch component
Alirexaa Jun 14, 2024
08537b0
add README.md
Alirexaa Jun 14, 2024
879c5f9
fix readme
Alirexaa Jun 14, 2024
a49cf72
using Aspire.Elastic.Clients.Elasticsearch in playground
Alirexaa Jun 14, 2024
ae5e116
fix build error , add health check
Alirexaa Jun 16, 2024
4811f54
Merge branch 'main' into elasticsearch-hosing
Alirexaa Jun 16, 2024
64b06e3
using PackageReference `AspNetCore.HealthChecks.Elasticsearch` with `…
Alirexaa Jun 17, 2024
d77e270
Merge branch 'elasticsearch-hosing' of https://github.com/Alirexaa/as…
Alirexaa Jun 17, 2024
4aae48c
add tests project
Alirexaa Jun 17, 2024
82e7298
add more tests
Alirexaa Jun 17, 2024
61c9db8
change ManifestGenerationTests
Alirexaa Jun 17, 2024
44e15d1
add tracing
Alirexaa Jun 17, 2024
6886908
fix HealthCheck
Alirexaa Jun 28, 2024
ccae991
Merge branch 'main' into elasticsearch-hosing
Alirexaa Jun 28, 2024
c5394fa
remove guard
Alirexaa Jul 1, 2024
067a0b7
Merge branch 'elasticsearch-hosing' of https://github.com/Alirexaa/as…
Alirexaa Jul 1, 2024
c11d7be
xml docs
Alirexaa Jul 1, 2024
666d73a
fix xml docs
Alirexaa Jul 1, 2024
e3060b6
fix build
Alirexaa Jul 2, 2024
fac6fc2
Apply suggestions from code review
Alirexaa Jul 4, 2024
9f61338
fix compile errors
Alirexaa Jul 4, 2024
3992643
delay creating Elasticsearch client
Alirexaa Jul 4, 2024
a4d36f8
remove HealthCheck unused code
Alirexaa Jul 4, 2024
7977e56
clean renaming AddElasticClientsElasticsearch -> AddElasticsearchClient
Alirexaa Jul 4, 2024
cd099d7
remove readme in test project
Alirexaa Jul 4, 2024
b9f2622
Remove isReadonly parameters.
mitchdenny Jul 8, 2024
25046b3
Minor PR feedback
eerhardt Jul 8, 2024
51ce86f
Merge remote-tracking branch 'upstream/main' into elasticsearch-hosing
eerhardt Jul 8, 2024
e2074e8
Merge remote-tracking branch 'upstream/main' into elasticsearch-hosing
eerhardt Jul 8, 2024
c0986e7
Apply suggestions from code review
Alirexaa Jul 9, 2024
cb29f9b
seperate Elaticsearch tests
Alirexaa Jul 9, 2024
42dd62b
fix build error
Alirexaa Jul 9, 2024
647dc23
Merge branch 'main' into elasticsearch-hosing
Alirexaa Jul 10, 2024
40999c7
add suggested changes
Alirexaa Jul 10, 2024
0e0e58c
Merge branch 'elasticsearch-hosing' of https://github.com/Alirexaa/as…
Alirexaa Jul 10, 2024
ab7069f
Merge branch 'dotnet:main' into elasticsearch-hosing
Alirexaa Jul 10, 2024
171e60d
Add Aspire.Hosting.Elasticsearch to Directory.Packages.Helix.props
sebastienros Jul 11, 2024
de6474f
Merge branch 'main' into elasticsearch-hosing
sebastienros Jul 11, 2024
a45e26f
remove invalid test
Alirexaa Jul 11, 2024
ce3f1a2
fix type name
Alirexaa Jul 11, 2024
8f99db1
fix failing test
Alirexaa Jul 11, 2024
b8ce534
add functional tests
Alirexaa Jul 12, 2024
71b45d3
add elastic logo
Alirexaa Jul 13, 2024
69f657e
Update Telemtry And Component Progress
Alirexaa Jul 13, 2024
557c72b
Add SuppressFinalPackageVersion for the initial version of the Elasti…
eerhardt Jul 16, 2024
b5bb53e
Merge branch 'main' into elasticsearch-hosing
radical Jul 17, 2024
0c5dfc0
fix merge
radical Jul 17, 2024
3088bac
Merge remote-tracking branch 'upstream/main' into elasticsearch-hosing
eerhardt Jul 17, 2024
aba6d1e
Merge remote-tracking branch 'origin/main' into elasticsearch-hosing
radical Jul 17, 2024
e0b638e
Remove elasticsearch from EndToEnd tests now that we have functional …
eerhardt Jul 17, 2024
fe594e5
Merge remote-tracking branch 'Alirexaa/elasticsearch-hosing' into ela…
eerhardt Jul 17, 2024
91abd1b
fix tests
eerhardt Jul 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 32 additions & 7 deletions Aspire.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Microsoft Visual Studio Solution File, Format Version 12.00

Alirexaa marked this conversation as resolved.
Show resolved Hide resolved
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Expand Down Expand Up @@ -487,18 +488,22 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aspire.Milvus.Client.Tests"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aspire.Hosting.Azure.WebPubSub", "src\Aspire.Hosting.Azure.WebPubSub\Aspire.Hosting.Azure.WebPubSub.csproj", "{DF00FDA3-D3EC-4E07-B4EC-0EBB57A813A4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Aspire.Hosting.Valkey", "src\Aspire.Hosting.Valkey\Aspire.Hosting.Valkey.csproj", "{5CB63205-24F4-4388-A41B-BAF3BEA59866}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aspire.Hosting.Valkey", "src\Aspire.Hosting.Valkey\Aspire.Hosting.Valkey.csproj", "{5CB63205-24F4-4388-A41B-BAF3BEA59866}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Aspire.Hosting.Elasticsearch", "src\Aspire.Hosting.Elasticsearch\Aspire.Hosting.Elasticsearch.csproj", "{9357EC71-823B-433A-9993-B7CB2FA082D1}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Elasticsearch", "Elasticsearch", "{5C28905E-0EE2-41C2-A161-7400671E66F7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elasticseach.AppHost", "playground\Elasticseach\Elasticseach.AppHost\Elasticseach.AppHost.csproj", "{4926BEFF-6A63-422F-8758-BB8EBEDD6BE8}"
Alirexaa marked this conversation as resolved.
Show resolved Hide resolved
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elasticseach.ApiService", "playground\Elasticseach\Elasticseach.ApiService\Elasticseach.ApiService.csproj", "{A923A2F5-1DA9-4D37-A2C1-7005051CE774}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5CB63205-24F4-4388-A41B-BAF3BEA59866}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5CB63205-24F4-4388-A41B-BAF3BEA59866}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5CB63205-24F4-4388-A41B-BAF3BEA59866}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5CB63205-24F4-4388-A41B-BAF3BEA59866}.Release|Any CPU.Build.0 = Release|Any CPU
{B52DCF1A-465D-4E92-A68A-0EE1A9ED49DF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B52DCF1A-465D-4E92-A68A-0EE1A9ED49DF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B52DCF1A-465D-4E92-A68A-0EE1A9ED49DF}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down Expand Up @@ -1287,12 +1292,27 @@ Global
{DF00FDA3-D3EC-4E07-B4EC-0EBB57A813A4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DF00FDA3-D3EC-4E07-B4EC-0EBB57A813A4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DF00FDA3-D3EC-4E07-B4EC-0EBB57A813A4}.Release|Any CPU.Build.0 = Release|Any CPU
{5CB63205-24F4-4388-A41B-BAF3BEA59866}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5CB63205-24F4-4388-A41B-BAF3BEA59866}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5CB63205-24F4-4388-A41B-BAF3BEA59866}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5CB63205-24F4-4388-A41B-BAF3BEA59866}.Release|Any CPU.Build.0 = Release|Any CPU
{9357EC71-823B-433A-9993-B7CB2FA082D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9357EC71-823B-433A-9993-B7CB2FA082D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9357EC71-823B-433A-9993-B7CB2FA082D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9357EC71-823B-433A-9993-B7CB2FA082D1}.Release|Any CPU.Build.0 = Release|Any CPU
{4926BEFF-6A63-422F-8758-BB8EBEDD6BE8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4926BEFF-6A63-422F-8758-BB8EBEDD6BE8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4926BEFF-6A63-422F-8758-BB8EBEDD6BE8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4926BEFF-6A63-422F-8758-BB8EBEDD6BE8}.Release|Any CPU.Build.0 = Release|Any CPU
{A923A2F5-1DA9-4D37-A2C1-7005051CE774}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A923A2F5-1DA9-4D37-A2C1-7005051CE774}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A923A2F5-1DA9-4D37-A2C1-7005051CE774}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A923A2F5-1DA9-4D37-A2C1-7005051CE774}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{5CB63205-24F4-4388-A41B-BAF3BEA59866} = {B80354C7-BE58-43F6-8928-9F3A74AB7F47}
{B52DCF1A-465D-4E92-A68A-0EE1A9ED49DF} = {B80354C7-BE58-43F6-8928-9F3A74AB7F47}
{E958BE04-81C2-434C-9E6C-CA145A2B8218} = {A68BA1A5-1604-433D-9778-DC0199831C2A}
{C1D595AD-FFFD-4E52-AAF6-8DD8C4BD67F1} = {A68BA1A5-1604-433D-9778-DC0199831C2A}
Expand Down Expand Up @@ -1521,6 +1541,11 @@ Global
{1BFE3C02-3B81-4596-99A2-4DCDD9129C9A} = {27381127-6C45-4B4C-8F18-41FF48DFE4B2}
{9FAE1602-2C69-4D24-8655-A164489441E8} = {4981B3A5-4AFD-4191-BF7D-8692D9783D60}
{DF00FDA3-D3EC-4E07-B4EC-0EBB57A813A4} = {77CFE74A-32EE-400C-8930-5025E8555256}
{5CB63205-24F4-4388-A41B-BAF3BEA59866} = {B80354C7-BE58-43F6-8928-9F3A74AB7F47}
{9357EC71-823B-433A-9993-B7CB2FA082D1} = {B80354C7-BE58-43F6-8928-9F3A74AB7F47}
{5C28905E-0EE2-41C2-A161-7400671E66F7} = {D173887B-AF42-4576-B9C1-96B9E9B3D9C0}
{4926BEFF-6A63-422F-8758-BB8EBEDD6BE8} = {5C28905E-0EE2-41C2-A161-7400671E66F7}
{A923A2F5-1DA9-4D37-A2C1-7005051CE774} = {5C28905E-0EE2-41C2-A161-7400671E66F7}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {6DCEDFEC-988E-4CB3-B45B-191EB5086E0C}
Expand Down
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<PackageVersion Include="Microsoft.Data.SqlClient" Version="5.2.1" />
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components" Version="4.7.2" />
<PackageVersion Include="Microsoft.FluentUI.AspNetCore.Components.Icons" Version="4.7.2" />
<PackageVersion Include="Milvus.Client" Version="2.3.0-preview.1"/>
<PackageVersion Include="Milvus.Client" Version="2.3.0-preview.1" />
<PackageVersion Include="MongoDB.Driver" Version="2.25.0" />
<PackageVersion Include="MongoDB.Driver.Core.Extensions.DiagnosticSources" Version="1.4.0" />
<PackageVersion Include="MySqlConnector.DependencyInjection" Version="2.3.6" />
Expand All @@ -120,6 +120,7 @@
<PackageVersion Include="StackExchange.Redis" Version="2.7.33" />
<PackageVersion Include="System.IO.Hashing" Version="8.0.0" />
<PackageVersion Include="Yarp.ReverseProxy" Version="2.1.0" />
<PackageVersion Include="Elasticsearch.Net" Version="7.17.5" />
mitchdenny marked this conversation as resolved.
Show resolved Hide resolved
<!-- Open Telemetry -->
<PackageVersion Include="Npgsql.OpenTelemetry" Version="8.0.3" />
<PackageVersion Include="OpenTelemetry.Exporter.InMemory" Version="1.8.1" />
Expand Down Expand Up @@ -154,7 +155,6 @@
<PackageVersion Include="Testcontainers.Redis" Version="$(TestcontainersPackageVersion)" />
<PackageVersion Include="Testcontainers.Nats" Version="$(TestcontainersPackageVersion)" />
<PackageVersion Include="Testcontainers.Milvus" Version="$(TestcontainersPackageVersion)" />

<!-- playground apps dependencies -->
<PackageVersion Include="Dapr.AspNetCore" Version="1.13.1" />
<PackageVersion Include="Microsoft.Orleans.Clustering.AzureStorage" Version="8.1.0" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Elasticsearch.Net" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\src\Aspire.Hosting.Elasticsearch\Aspire.Hosting.Elasticsearch.csproj" />
<ProjectReference Include="..\..\Playground.ServiceDefaults\Playground.ServiceDefaults.csproj" />
</ItemGroup>
</Project>
39 changes: 39 additions & 0 deletions playground/Elasticseach/Elasticseach.ApiService/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using Elasticsearch.Net;

var builder = WebApplication.CreateBuilder(args);

builder.AddServiceDefaults();

builder.Services.AddSingleton<ElasticLowLevelClient>((sp) =>
Alirexaa marked this conversation as resolved.
Show resolved Hide resolved
{
var settings = new ConnectionConfiguration(new Uri(builder.Configuration.GetConnectionString("elasticsearch")!))
.RequestTimeout(TimeSpan.FromMinutes(2));

var lowlevelClient = new ElasticLowLevelClient(settings);
return lowlevelClient;
});

var app = builder.Build();

app.MapGet("/", async (ElasticLowLevelClient elasticClient) =>
{
var response = await elasticClient.GetAsync<StringResponse>("people", "1");
return response.Body;
});

app.MapPost("/", async (ElasticLowLevelClient elasticClient) =>
{
var person = new
{
FirstName = "Alireza",
LastName = "Baloochi"
};

var response = await elasticClient.IndexAsync<StringResponse>("people", "1", PostData.Serializable(person));
return response.Body;
});

app.Run();
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:4855",
"sslPort": 44376
}
},
"profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "http://localhost:5053",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"https": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:7158;http://localhost:5053",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project>

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />

<!-- NOTE: This line is only required because we are using P2P references, not NuGet. It will not exist in real apps. -->
<Import Project="../../../src/Aspire.Hosting.AppHost/build/Aspire.Hosting.AppHost.props" />

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<Project>

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.targets', '$(MSBuildThisFileDirectory)../'))" />

<!-- NOTE: These lines are only required because we are using P2P references, not NuGet. They will not exist in real apps. -->
<Import Project="..\..\..\src\Aspire.Hosting.AppHost\build\Aspire.Hosting.AppHost.targets" />
<Import Project="..\..\..\src\Aspire.Hosting.Sdk\SDK\Sdk.targets" />

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsAspireHost>true</IsAspireHost>
<UserSecretsId>76c9a20b-a2cc-4874-8d26-6fbe827d11bf</UserSecretsId>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\src\Aspire.Dashboard\Aspire.Dashboard.csproj" />
<ProjectReference Include="..\..\..\src\Aspire.Hosting.AppHost\Aspire.Hosting.AppHost.csproj" IsAspireProjectResource="false" />
<ProjectReference Include="..\..\..\src\Aspire.Hosting.Elasticsearch\Aspire.Hosting.Elasticsearch.csproj" IsAspireProjectResource="false" />
<ProjectReference Include="..\Elasticseach.ApiService\Elasticseach.ApiService.csproj" />
</ItemGroup>

<ItemGroup>
<Compile Include="$(SharedDir)KnownResourceNames.cs" Link="KnownResourceNames.cs" />
</ItemGroup>
</Project>
21 changes: 21 additions & 0 deletions playground/Elasticseach/Elasticseach.AppHost/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using Projects;

var builder = DistributedApplication.CreateBuilder(args);

var elasticsearch = builder.AddElasticsearch("elasticsearch")
.WithDataVolume("data");

builder.AddProject<Elasticseach_ApiService>("elasticsearch-apiservice")
.WithReference(elasticsearch);

// This project is only added in playground projects to support development/debugging
// of the dashboard. It is not required in end developer code. Comment out this code
// to test end developer dashboard launch experience. Refer to Directory.Build.props
// for the path to the dashboard binary (defaults to the Aspire.Dashboard bin output
// in the artifacts dir).
builder.AddProject<Projects.Aspire_Dashboard>(KnownResourceNames.AspireDashboard);

builder.Build().Run();
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"profiles": {
"https": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:17196;http://localhost:15122",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"DOTNET_ENVIRONMENT": "Development",
"DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:21146",
"DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:22194"
}
},
"http": {
Alirexaa marked this conversation as resolved.
Show resolved Hide resolved
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "http://localhost:15122",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"DOTNET_ENVIRONMENT": "Development",
"DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:19117",
"DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:20104"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
}
}
9 changes: 9 additions & 0 deletions playground/Elasticseach/Elasticseach.AppHost/appsettings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Aspire.Hosting.Dcp": "Warning"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>$(NetCurrent)</TargetFramework>
<IsPackable>true</IsPackable>
<PackageTags>aspire hosting elasticsearch</PackageTags>
<Description>Elasticsearch support for .NET Aspire.</Description>
</PropertyGroup>

<ItemGroup>
<Compile Include="$(SharedDir)VolumeNameGenerator.cs" Link="Utils\VolumeNameGenerator.cs" />
</ItemGroup>

<ItemGroup>
<InternalsVisibleTo Include="Aspire.Hosting.Tests" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Aspire.Hosting\Aspire.Hosting.csproj" />
</ItemGroup>
</Project>
Loading