Skip to content

Commit

Permalink
addhealthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriaWei committed Jun 1, 2019
1 parent a29eae0 commit c8a1019
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Run.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ECHO dotnet core sdk was not find, please install the latest sdk at first.
start https://www.microsoft.com/net/download/windows
exit
)
if not exist "src/ZKEACMS.WebHost/bin/Debug/netcoreapp2.2/ZKEACMS.WebHost.dll" (
if not exist "src/ZKEACMS.WebHost/bin/Debug/netcoreapp3.0/ZKEACMS.WebHost.dll" (
call Build.cmd
)

Expand Down
2 changes: 1 addition & 1 deletion src/ZKEACMS/Builder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static void UseZKEACMS(this IServiceCollection services, IConfiguration c
.SetCompatibilityVersion(CompatibilityVersion.Latest);

services.AddRazorPages();

services.AddHealthChecks();
services.TryAddSingleton<IHttpContextAccessor, HttpContextAccessor>();

services.TryAddScoped<IApplicationContextAccessor, ApplicationContextAccessor>();
Expand Down

0 comments on commit c8a1019

Please sign in to comment.