From d2ab047a95592a261fbcc89820dbbaaf5568e049 Mon Sep 17 00:00:00 2001 From: configcat Date: Thu, 7 Nov 2019 00:05:20 +0100 Subject: [PATCH] update packages --- .../WebApplication/Controllers/BackdoorController.cs | 4 +++- samples/ASP.NETCore/WebApplication/Startup.cs | 1 - samples/ASP.NETCore/WebApplication/WebApplication.csproj | 5 ++++- 3 files changed, 7 insertions(+), 3 deletions(-) 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 @@ - + + + +