diff --git a/samples/ASP.NETCore/WebApplication/Controllers/BackdoorController.cs b/samples/ASP.NETCore/WebApplication/Controllers/BackdoorController.cs index 96220d05..e7e0a188 100644 --- a/samples/ASP.NETCore/WebApplication/Controllers/BackdoorController.cs +++ b/samples/ASP.NETCore/WebApplication/Controllers/BackdoorController.cs @@ -22,9 +22,11 @@ public BackdoorController(IConfigCatClient configCatClient) // GET: api/backdoor/configcatchanged [HttpGet] [Route("configcatchanged")] - public void ConfigCatChanged() + public IActionResult ConfigCatChanged() { this.configCatClient.ForceRefresh(); + + return this.Ok("configCatClient.ForceRefresh() invoked"); } } } \ No newline at end of file diff --git a/samples/ASP.NETCore/WebApplication/Startup.cs b/samples/ASP.NETCore/WebApplication/Startup.cs index f571b91e..15a9d660 100644 --- a/samples/ASP.NETCore/WebApplication/Startup.cs +++ b/samples/ASP.NETCore/WebApplication/Startup.cs @@ -4,7 +4,6 @@ using Microsoft.Extensions.DependencyInjection; using ConfigCat.Client; -using ConfigCat.Client.Configuration; namespace WebApplication { diff --git a/samples/ASP.NETCore/WebApplication/WebApplication.csproj b/samples/ASP.NETCore/WebApplication/WebApplication.csproj index 6299f145..f9a3a2b3 100644 --- a/samples/ASP.NETCore/WebApplication/WebApplication.csproj +++ b/samples/ASP.NETCore/WebApplication/WebApplication.csproj @@ -5,9 +5,12 @@ - + + + +