-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathProgram.cs
More file actions
16 lines (13 loc) · 667 Bytes
/
Program.cs
File metadata and controls
16 lines (13 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// <copyright file="Program.cs" company="MPCoreDeveloper">
// Copyright (c) 2026 MPCoreDeveloper and GitHub Copilot. All rights reserved.
// Licensed under the MIT License.
// </copyright>
// .NET Aspire AppHost - Orchestrates SharpCoreDB Server with Observability
var builder = DistributedApplication.CreateBuilder(args);
// Add SharpCoreDB Server
var server = builder.AddProject<Projects.SharpCoreDB_Server>("sharpcoredb-server")
.WithHttpEndpoint(port: 8080, name: "http")
.WithHttpsEndpoint(port: 5001, name: "grpc")
.WithEnvironment("ASPNETCORE_URLS", "http://+:8080;https://+:5001");
// Build and run with Aspire Dashboard
builder.Build().Run();