Merge workers into API
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Managing.Api.Workers\Managing.Api.Workers.csproj"/>
|
||||
<ProjectReference Include="..\Managing.Api\Managing.Api.csproj"/>
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
using Projects;
|
||||
|
||||
var builder = DistributedApplication.CreateBuilder(args);
|
||||
|
||||
// Add API projects
|
||||
var managingApi = builder.AddProject<Projects.Managing_Api>("managing-api");
|
||||
var workersApi = builder.AddProject<Projects.Managing_Api_Workers>("worker-api");
|
||||
var managingApi = builder.AddProject<Managing_Api>("managing-api");
|
||||
|
||||
// No need to add containers - your APIs will use their existing connection strings
|
||||
// from their respective appsettings.json files
|
||||
|
||||
// Connect services to resources
|
||||
workersApi.WithReference(managingApi);
|
||||
|
||||
builder.Build().Run();
|
||||
Reference in New Issue
Block a user