-
Notifications
You must be signed in to change notification settings - Fork 3
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
5 changed files
with
33 additions
and
7 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
19 changes: 19 additions & 0 deletions
19
src/Inc.TeamAssistant.Gateway/Services/ServerCore/ServerHostEnvironment.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,19 @@ | ||
using Microsoft.AspNetCore.Components; | ||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting; | ||
|
||
namespace Inc.TeamAssistant.Gateway.Services.ServerCore; | ||
|
||
internal sealed class ServerHostEnvironment : IWebAssemblyHostEnvironment | ||
{ | ||
private readonly IWebHostEnvironment _hostEnvironment; | ||
private readonly NavigationManager _navigationManager; | ||
|
||
public ServerHostEnvironment(IWebHostEnvironment hostEnvironment, NavigationManager navigationManager) | ||
{ | ||
_hostEnvironment = hostEnvironment ?? throw new ArgumentNullException(nameof(hostEnvironment)); | ||
_navigationManager = navigationManager ?? throw new ArgumentNullException(nameof(navigationManager)); | ||
} | ||
|
||
public string Environment => _hostEnvironment.EnvironmentName; | ||
public string BaseAddress => _navigationManager.BaseUri; | ||
} |
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
9 changes: 5 additions & 4 deletions
9
src/Inc.TeamAssistant.WebUI/Services/Clients/ClientRenderContext.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
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