forked from dotnet-architecture/eShopOnContainers
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
181 changed files
with
32,957 additions
and
29,357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -281,4 +281,3 @@ pub/ | |
src/**/app.yaml | ||
src/**/inf.yaml | ||
|
||
.angular/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
kind: helm-release | ||
apiVersion: 1.1 | ||
build: | ||
context: ..\..\..\.. | ||
dockerfile: Dockerfile | ||
install: | ||
chart: ../../../../k8s/helm/mobileshoppingagg | ||
set: | ||
image: | ||
tag: $(tag) | ||
pullPolicy: Never | ||
ingress: | ||
annotations: | ||
kubernetes.io/ingress.class: traefik-azds | ||
hosts: | ||
# This expands to [space.s.]apigwms.<guid>.<region>.aksapp.io | ||
- $(spacePrefix)eshop$(hostSuffix) | ||
inf: | ||
k8s: | ||
dns: $(spacePrefix)eshop$(hostSuffix) | ||
values: | ||
- values.dev.yaml? | ||
- secrets.dev.yaml? | ||
- app.yaml | ||
- inf.yaml | ||
configurations: | ||
develop: | ||
build: | ||
useGitIgnore: true | ||
dockerfile: Dockerfile.develop | ||
container: | ||
syncTarget: /src | ||
sync: | ||
- '**/Pages/**' | ||
- '**/Views/**' | ||
- '**/wwwroot/**' | ||
- '!**/*.{sln,csproj}' | ||
command: | ||
- dotnet | ||
- run | ||
- --no-restore | ||
- --no-build | ||
- --no-launch-profile | ||
- -c | ||
- ${Configuration:-Debug} | ||
iterate: | ||
processesToKill: | ||
- dotnet | ||
- vsdbg | ||
buildCommands: | ||
- - dotnet | ||
- build | ||
- --no-restore | ||
- -c | ||
- ${Configuration:-Debug} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
kind: helm-release | ||
apiVersion: 1.1 | ||
build: | ||
context: ..\..\..\.. | ||
dockerfile: Dockerfile | ||
install: | ||
chart: ../../../../k8s/helm/webshoppingagg | ||
set: | ||
image: | ||
tag: $(tag) | ||
pullPolicy: Never | ||
ingress: | ||
annotations: | ||
kubernetes.io/ingress.class: traefik-azds | ||
hosts: | ||
# This expands to [space.s.]apigwms.<guid>.<region>.aksapp.io | ||
- $(spacePrefix)eshop$(hostSuffix) | ||
inf: | ||
k8s: | ||
dns: $(spacePrefix)eshop$(hostSuffix) | ||
values: | ||
- values.dev.yaml? | ||
- secrets.dev.yaml? | ||
- app.yaml | ||
- inf.yaml | ||
configurations: | ||
develop: | ||
build: | ||
useGitIgnore: true | ||
dockerfile: Dockerfile.develop | ||
container: | ||
syncTarget: /src | ||
sync: | ||
- '**/Pages/**' | ||
- '**/Views/**' | ||
- '**/wwwroot/**' | ||
- '!**/*.{sln,csproj}' | ||
command: | ||
- dotnet | ||
- run | ||
- --no-restore | ||
- --no-build | ||
- --no-launch-profile | ||
- -c | ||
- ${Configuration:-Debug} | ||
iterate: | ||
processesToKill: | ||
- dotnet | ||
- vsdbg | ||
buildCommands: | ||
- - dotnet | ||
- build | ||
- --no-restore | ||
- -c | ||
- ${Configuration:-Debug} |
11 changes: 11 additions & 0 deletions
11
src/BuildingBlocks/Devspaces.Support/Devspaces.Support.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" /> | ||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" /> | ||
<PackageReference Include="Microsoft.Extensions.Http" Version="7.0.0" /> | ||
</ItemGroup> | ||
</Project> |
22 changes: 22 additions & 0 deletions
22
src/BuildingBlocks/Devspaces.Support/DevspacesMessageHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace Devspaces.Support; | ||
|
||
public class DevspacesMessageHandler : DelegatingHandler | ||
{ | ||
private const string DevspacesHeaderName = "azds-route-as"; | ||
private readonly IHttpContextAccessor _httpContextAccessor; | ||
public DevspacesMessageHandler(IHttpContextAccessor httpContextAccessor) | ||
{ | ||
_httpContextAccessor = httpContextAccessor; | ||
} | ||
|
||
protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) | ||
{ | ||
var req = _httpContextAccessor.HttpContext.Request; | ||
|
||
if (req.Headers.ContainsKey(DevspacesHeaderName)) | ||
{ | ||
request.Headers.Add(DevspacesHeaderName, req.Headers[DevspacesHeaderName] as IEnumerable<string>); | ||
} | ||
return base.SendAsync(request, cancellationToken); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
global using Microsoft.AspNetCore.Http; | ||
global using Microsoft.Extensions.DependencyInjection; | ||
global using System.Collections.Generic; | ||
global using System.Net.Http; | ||
global using System.Threading.Tasks; | ||
global using System.Threading; |
10 changes: 10 additions & 0 deletions
10
src/BuildingBlocks/Devspaces.Support/HttpClientBuilderDevspacesExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Devspaces.Support; | ||
|
||
public static class HttpClientBuilderDevspacesExtensions | ||
{ | ||
public static IHttpClientBuilder AddDevspacesSupport(this IHttpClientBuilder builder) | ||
{ | ||
builder.AddHttpMessageHandler<DevspacesMessageHandler>(); | ||
return builder; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/BuildingBlocks/Devspaces.Support/ServiceCollectionDevspacesExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace Devspaces.Support; | ||
|
||
public static class ServiceCollectionDevspacesExtensions | ||
{ | ||
public static IServiceCollection AddDevspaces(this IServiceCollection services) | ||
{ | ||
services.AddTransient<DevspacesMessageHandler>(); | ||
return services; | ||
} | ||
} |
Oops, something went wrong.