diff --git a/README.md b/README.md index 821ffadb..0aa527ce 100644 --- a/README.md +++ b/README.md @@ -34,12 +34,12 @@ dotnet add package ConfigCat.Client using ConfigCat.Client; ``` -### 3. Go to Connect your application tab to get your *API Key*: -![API-KEY](https://raw.githubusercontent.com/ConfigCat/.net-sdk/master/media/readme01.png "API-KEY") +### 3. Go to Connect your application tab to get your *SDK Key*: +![SDK-KEY](https://raw.githubusercontent.com/ConfigCat/.net-sdk/master/media/readme01.png "SDK-KEY") ### 4. Create a **ConfigCat** client instance: ```c# -var client = new ConfigCatClient("#YOUR-API-KEY#"); +var client = new ConfigCatClient("#YOUR-SDK-KEY#"); ``` > We strongly recommend using the *ConfigCat Client* as a Singleton object in your application. @@ -84,8 +84,8 @@ var isMyAwesomeFeatureEnabled = client.GetValue( ## Polling Modes The ConfigCat SDK supports 3 different polling mechanisms to acquire the setting values from ConfigCat. After latest setting values are downloaded, they are stored in the internal cache then all requests are served from there. Read more about Polling Modes and how to use them at [ConfigCat Docs](https://docs.configcat.com/docs/sdk-reference/csharp/). -## Support -If you need help how to use this SDK feel free to to contact the ConfigCat Staff on https://configcat.com. We're happy to help. +## Need help? +https://configcat.com/support ## Contributing Contributions are welcome. diff --git a/media/readme01.png b/media/readme01.png index 23837ea7..731d84d9 100644 Binary files a/media/readme01.png and b/media/readme01.png differ diff --git a/samples/ASP.NETCore/WebApplication/Startup.cs b/samples/ASP.NETCore/WebApplication/Startup.cs index ee4c06e2..4d0a569b 100644 --- a/samples/ASP.NETCore/WebApplication/Startup.cs +++ b/samples/ASP.NETCore/WebApplication/Startup.cs @@ -23,7 +23,7 @@ public void ConfigureServices(IServiceCollection services) var configCatClient = new ConfigCatClient(new LazyLoadConfiguration { - ApiKey = Configuration["ConfigCatApiKey"], + SdkKey = Configuration["ConfigCatSdkKey"], CacheTimeToLiveSeconds = 120 }); configCatClient.LogLevel = LogLevel.Info; diff --git a/samples/ASP.NETCore/WebApplication/appsettings.json b/samples/ASP.NETCore/WebApplication/appsettings.json index 9411c90d..5e4b355f 100644 --- a/samples/ASP.NETCore/WebApplication/appsettings.json +++ b/samples/ASP.NETCore/WebApplication/appsettings.json @@ -5,6 +5,6 @@ "Default": "Warning" } }, - "ConfigCatApiKey": "PKDVCLf-Hq-h-kCzMp-L7Q/HhOWfwVtZ0mb30i9wi17GQ" + "ConfigCatSdkKey": "PKDVCLf-Hq-h-kCzMp-L7Q/HhOWfwVtZ0mb30i9wi17GQ" } diff --git a/samples/ConsoleApp/Program.cs b/samples/ConsoleApp/Program.cs index f8a3e3c1..18bd61a5 100644 --- a/samples/ConsoleApp/Program.cs +++ b/samples/ConsoleApp/Program.cs @@ -7,7 +7,7 @@ class Program { static void Main(string[] args) { - // Creating the ConfigCat client instance using the API key + // Creating the ConfigCat client instance using the SDK Key var client = new ConfigCatClient("PKDVCLf-Hq-h-kCzMp-L7Q/HhOWfwVtZ0mb30i9wi17GQ"); // Setting log level to Info to show detailed feature flag evaluation diff --git a/samples/FileLoggerSample.cs b/samples/FileLoggerSample.cs index 96100d72..e36c8b94 100644 --- a/samples/FileLoggerSample.cs +++ b/samples/FileLoggerSample.cs @@ -54,7 +54,7 @@ static void Main(string[] args) var clientConfiguration = new AutoPollConfiguration { - ApiKey = "YOUR-API-KEY", + SdkKey = "YOUR-SDK-KEY", Logger = new MyFileLogger(filePath, logLevel), PollIntervalSeconds = 5 }; diff --git a/src/ConfigCat.Client.Tests/BaseUrlTests.cs b/src/ConfigCat.Client.Tests/BaseUrlTests.cs index b269b051..e51eb176 100644 --- a/src/ConfigCat.Client.Tests/BaseUrlTests.cs +++ b/src/ConfigCat.Client.Tests/BaseUrlTests.cs @@ -6,7 +6,7 @@ namespace ConfigCat.Client.Tests [TestClass] public class BaseUrlTests { - private const string APIKEY = "PKDVCLf-Hq-h-kCzMp-L7Q/psuH7BGHoUmdONrzzUOY7A"; + private const string SDKKEY = "PKDVCLf-Hq-h-kCzMp-L7Q/psuH7BGHoUmdONrzzUOY7A"; private readonly Uri workingBaseUrl = new Uri("https://cdn.configcat.com"); private readonly Uri notWorkingBaseUrl = new Uri("https://thiswillnotwork.configcat.com"); @@ -14,7 +14,7 @@ public class BaseUrlTests [TestMethod] public void BaseUrl_Override_AutoPoll_Works() { - var client = ConfigCatClientBuilder.Initialize(APIKEY) + var client = ConfigCatClientBuilder.Initialize(SDKKEY) .WithAutoPoll() .WithBaseUrl(workingBaseUrl) .Create(); @@ -22,7 +22,7 @@ public void BaseUrl_Override_AutoPoll_Works() var actual = client.GetValue("stringDefaultCat", "N/A"); Assert.AreEqual("Cat", actual); - client = ConfigCatClientBuilder.Initialize(APIKEY) + client = ConfigCatClientBuilder.Initialize(SDKKEY) .WithAutoPoll() .WithBaseUrl(notWorkingBaseUrl) .Create(); @@ -34,7 +34,7 @@ public void BaseUrl_Override_AutoPoll_Works() [TestMethod] public void BaseUrl_Override_ManualPoll_Works() { - var client = ConfigCatClientBuilder.Initialize(APIKEY) + var client = ConfigCatClientBuilder.Initialize(SDKKEY) .WithManualPoll() .WithBaseUrl(workingBaseUrl) .Create(); @@ -42,7 +42,7 @@ public void BaseUrl_Override_ManualPoll_Works() var actual = client.GetValue("stringDefaultCat", "N/A"); Assert.AreEqual("Cat", actual); - client = ConfigCatClientBuilder.Initialize(APIKEY) + client = ConfigCatClientBuilder.Initialize(SDKKEY) .WithManualPoll() .WithBaseUrl(notWorkingBaseUrl) .Create(); @@ -54,7 +54,7 @@ public void BaseUrl_Override_ManualPoll_Works() [TestMethod] public void BaseUrl_Override_LazyLoad_Works() { - var client = ConfigCatClientBuilder.Initialize(APIKEY) + var client = ConfigCatClientBuilder.Initialize(SDKKEY) .WithLazyLoad() .WithBaseUrl(workingBaseUrl) .Create(); @@ -62,7 +62,7 @@ public void BaseUrl_Override_LazyLoad_Works() var actual = client.GetValue("stringDefaultCat", "N/A"); Assert.AreEqual("Cat", actual); - client = ConfigCatClientBuilder.Initialize(APIKEY) + client = ConfigCatClientBuilder.Initialize(SDKKEY) .WithLazyLoad() .WithBaseUrl(notWorkingBaseUrl) .Create(); diff --git a/src/ConfigCat.Client.Tests/BasicConfigCatClientIntegrationTests.cs b/src/ConfigCat.Client.Tests/BasicConfigCatClientIntegrationTests.cs index e49fb5be..2cc2f85a 100644 --- a/src/ConfigCat.Client.Tests/BasicConfigCatClientIntegrationTests.cs +++ b/src/ConfigCat.Client.Tests/BasicConfigCatClientIntegrationTests.cs @@ -10,9 +10,9 @@ namespace ConfigCat.Client.Tests [TestClass] public class BasicConfigCatClientIntegrationTests { - private const string APIKEY = "PKDVCLf-Hq-h-kCzMp-L7Q/psuH7BGHoUmdONrzzUOY7A"; + private const string SDKKEY = "PKDVCLf-Hq-h-kCzMp-L7Q/psuH7BGHoUmdONrzzUOY7A"; - private static readonly IConfigCatClient client = new ConfigCatClient(APIKEY); + private static readonly IConfigCatClient client = new ConfigCatClient(SDKKEY); private static readonly ILogger consoleLogger = new ConsoleLogger(LogLevel.Debug); @@ -26,7 +26,7 @@ public static void ClassCleanup() public void ManualPollGetValue() { IConfigCatClient manualPollClient = ConfigCatClientBuilder - .Initialize(APIKEY) + .Initialize(SDKKEY) .WithLogger(consoleLogger) .WithManualPoll() .Create(); @@ -40,7 +40,7 @@ public void ManualPollGetValue() public void AutoPollGetValue() { IConfigCatClient client = ConfigCatClientBuilder - .Initialize(APIKEY) + .Initialize(SDKKEY) .WithLogger(consoleLogger) .WithAutoPoll() .WithMaxInitWaitTimeSeconds(30) @@ -54,7 +54,7 @@ public void AutoPollGetValue() public void LazyLoadGetValue() { IConfigCatClient client = ConfigCatClientBuilder - .Initialize(APIKEY) + .Initialize(SDKKEY) .WithLogger(consoleLogger) .WithLazyLoad() .WithCacheTimeToLiveSeconds(30) @@ -67,7 +67,7 @@ public void LazyLoadGetValue() public async Task ManualPollGetValueAsync() { IConfigCatClient client = ConfigCatClientBuilder - .Initialize(APIKEY) + .Initialize(SDKKEY) .WithLogger(consoleLogger) .WithManualPoll() .Create(); @@ -81,7 +81,7 @@ public async Task ManualPollGetValueAsync() public async Task AutoPollGetValueAsync() { IConfigCatClient client = ConfigCatClientBuilder - .Initialize(APIKEY) + .Initialize(SDKKEY) .WithLogger(consoleLogger) .WithAutoPoll() .WithMaxInitWaitTimeSeconds(30) @@ -95,7 +95,7 @@ public async Task AutoPollGetValueAsync() public async Task LazyLoadGetValueAsync() { IConfigCatClient client = ConfigCatClientBuilder - .Initialize(APIKEY) + .Initialize(SDKKEY) .WithLogger(consoleLogger) .WithLazyLoad() .WithCacheTimeToLiveSeconds(30) @@ -108,7 +108,7 @@ public async Task LazyLoadGetValueAsync() public void GetAllKeys() { IConfigCatClient manualPollClient = ConfigCatClientBuilder - .Initialize(APIKEY) + .Initialize(SDKKEY) .WithLogger(consoleLogger) .WithManualPoll() .Create(); diff --git a/src/ConfigCat.Client.Tests/ConfigCacheTests.cs b/src/ConfigCat.Client.Tests/ConfigCacheTests.cs index 64a7d413..6a1f893d 100644 --- a/src/ConfigCat.Client.Tests/ConfigCacheTests.cs +++ b/src/ConfigCat.Client.Tests/ConfigCacheTests.cs @@ -6,7 +6,7 @@ namespace ConfigCat.Client.Tests [TestClass] public class ConfigCacheTests { - private const string APIKEY = "PKDVCLf-Hq-h-kCzMp-L7Q/psuH7BGHoUmdONrzzUOY7A"; + private const string SDKKEY = "PKDVCLf-Hq-h-kCzMp-L7Q/psuH7BGHoUmdONrzzUOY7A"; [TestMethod] public void ConfigCache_Override_AutoPoll_Works() @@ -20,7 +20,7 @@ public void ConfigCache_Override_AutoPoll_Works() configCacheMock.Setup(c => c.Get()).Returns(() => cachedConfig); - var client = ConfigCatClientBuilder.Initialize(APIKEY).WithAutoPoll().WithConfigCache(configCacheMock.Object).Create(); + var client = ConfigCatClientBuilder.Initialize(SDKKEY).WithAutoPoll().WithConfigCache(configCacheMock.Object).Create(); var actual = client.GetValue("stringDefaultCat", "N/A"); Assert.AreEqual("Cat", actual); @@ -41,7 +41,7 @@ public void ConfigCache_Override_ManualPoll_Works() configCacheMock.Setup(c => c.Get()).Returns(() => cachedConfig); - var client = ConfigCatClientBuilder.Initialize(APIKEY).WithManualPoll().WithConfigCache(configCacheMock.Object).Create(); + var client = ConfigCatClientBuilder.Initialize(SDKKEY).WithManualPoll().WithConfigCache(configCacheMock.Object).Create(); configCacheMock.Verify(c => c.Set(It.IsAny()), Times.Never); configCacheMock.Verify(c => c.Get(), Times.Never); @@ -71,7 +71,7 @@ public void ConfigCache_Override_LazyLoad_Works() configCacheMock.Setup(c => c.Get()).Returns(() => cachedConfig); - var client = ConfigCatClientBuilder.Initialize(APIKEY).WithLazyLoad().WithConfigCache(configCacheMock.Object).Create(); + var client = ConfigCatClientBuilder.Initialize(SDKKEY).WithLazyLoad().WithConfigCache(configCacheMock.Object).Create(); var actual = client.GetValue("stringDefaultCat", "N/A"); Assert.AreEqual("Cat", actual); diff --git a/src/ConfigCat.Client.Tests/ConfigCatClientTests.cs b/src/ConfigCat.Client.Tests/ConfigCatClientTests.cs index 8fe1d2b0..ce745d45 100644 --- a/src/ConfigCat.Client.Tests/ConfigCatClientTests.cs +++ b/src/ConfigCat.Client.Tests/ConfigCatClientTests.cs @@ -29,29 +29,29 @@ public void TestInitialize() [ExpectedException(typeof(ArgumentException))] [TestMethod] - public void CreateAnInstance_WhenApiKeyIsEmpty_ShouldThrowArgumentNullException() + public void CreateAnInstance_WhenSdkKeyIsEmpty_ShouldThrowArgumentNullException() { - string apiKey = string.Empty; + string sdkKey = string.Empty; - new ConfigCatClient(apiKey); + new ConfigCatClient(sdkKey); } [ExpectedException(typeof(ArgumentException))] [TestMethod] - public void CreateAnInstance_WhenApiKeyIsNull_ShouldThrowArgumentNullException() + public void CreateAnInstance_WhenSdkKeyIsNull_ShouldThrowArgumentNullException() { - string apiKey = null; + string sdkKey = null; - new ConfigCatClient(apiKey); + new ConfigCatClient(sdkKey); } [ExpectedException(typeof(ArgumentException))] [TestMethod] - public void CreateAnInstance_WhenAutoPollConfigurationApiKeyIsNull_ShouldThrowArgumentNullException() + public void CreateAnInstance_WhenAutoPollConfigurationSdkKeyIsNull_ShouldThrowArgumentNullException() { var clientConfiguration = new AutoPollConfiguration { - ApiKey = null + SdkKey = null }; new ConfigCatClient(clientConfiguration); @@ -63,7 +63,7 @@ public void CreateAnInstance_WhenAutoPollConfigurationPollIntervalsZero_ShouldTh { var clientConfiguration = new AutoPollConfiguration { - ApiKey = "hsdrTr4sxbHdSgdhHRZds346hdgsS2vfsgf/GsdrTr4sxbHdSgdhHRZds346hdOPsSgvfsgf", + SdkKey = "hsdrTr4sxbHdSgdhHRZds346hdgsS2vfsgf/GsdrTr4sxbHdSgdhHRZds346hdOPsSgvfsgf", PollIntervalSeconds = 0 }; @@ -72,11 +72,11 @@ public void CreateAnInstance_WhenAutoPollConfigurationPollIntervalsZero_ShouldTh [ExpectedException(typeof(ArgumentException))] [TestMethod] - public void CreateAnInstance_WhenConfigurationApiKeyIsEmpty_ShouldThrowArgumentNullException() + public void CreateAnInstance_WhenConfigurationSdkKeyIsEmpty_ShouldThrowArgumentNullException() { var clientConfiguration = new AutoPollConfiguration { - ApiKey = string.Empty + SdkKey = string.Empty }; new ConfigCatClient(clientConfiguration); @@ -88,7 +88,7 @@ public void CreateAnInstance_WhenLazyLoadConfigurationTimeToLiveSecondsIsZero_Sh { var clientConfiguration = new LazyLoadConfiguration { - ApiKey = "hsdrTr4sxbHdSgdhHRZds346hdgsS2vfsgf/GsdrTr4sxbHdSgdhHRZds346hdOPsSgvfsgf", + SdkKey = "hsdrTr4sxbHdSgdhHRZds346hdgsS2vfsgf/GsdrTr4sxbHdSgdhHRZds346hdOPsSgvfsgf", CacheTimeToLiveSeconds = 0 }; @@ -128,7 +128,7 @@ public void CreateAnInstance_WhenLoggerIsNull_ShouldThrowArgumentNullException() { var clientConfiguration = new AutoPollConfiguration { - ApiKey = "hsdrTr4sxbHdSgdhHRZds346hdgsS2vfsgf/GsdrTr4sxbHdSgdhHRZds346hdOPsSgvfsgf", + SdkKey = "hsdrTr4sxbHdSgdhHRZds346hdgsS2vfsgf/GsdrTr4sxbHdSgdhHRZds346hdOPsSgvfsgf", Logger = null }; @@ -141,24 +141,24 @@ public void CreateAnInstance_WithValidConfiguration_ShouldCreateAnInstance() { var config = new AutoPollConfiguration { - ApiKey = "hsdrTr4sxbHdSgdhHRZds346hdgsS2vfsgf/GsdrTr4sxbHdSgdhHRZds346hdOPsSgvfsgf" + SdkKey = "hsdrTr4sxbHdSgdhHRZds346hdgsS2vfsgf/GsdrTr4sxbHdSgdhHRZds346hdOPsSgvfsgf" }; new ConfigCatClient(config); } [TestMethod] - public void CreateAnInstance_WithApiKey_ShouldCreateAnInstance() + public void CreateAnInstance_WithSdkKey_ShouldCreateAnInstance() { - string apiKey = "hsdrTr4sxbHdSgdhHRZds346hdgsS2vfsgf/GsdrTr4sxbHdSgdhHRZds346hdOPsSgvfsgf"; + string sdkKey = "hsdrTr4sxbHdSgdhHRZds346hdgsS2vfsgf/GsdrTr4sxbHdSgdhHRZds346hdOPsSgvfsgf"; - new ConfigCatClient(apiKey); + new ConfigCatClient(sdkKey); } [TestMethod] public void CreateConfigurationBuilderInstance_ShouldCreateAnInstance() { - var builder = ConfigCatClient.Create("APIKEY"); + var builder = ConfigCatClient.Create("SDKKEY"); Assert.IsNotNull(builder); } diff --git a/src/ConfigCat.Client.Tests/CustomHttpClientHandlerTests.cs b/src/ConfigCat.Client.Tests/CustomHttpClientHandlerTests.cs index 33deaf67..9b6c3cb2 100644 --- a/src/ConfigCat.Client.Tests/CustomHttpClientHandlerTests.cs +++ b/src/ConfigCat.Client.Tests/CustomHttpClientHandlerTests.cs @@ -7,7 +7,7 @@ namespace ConfigCat.Client.Tests [TestClass] public class CustomHttpClientHandlerTests { - private const string APIKEY = "PKDVCLf-Hq-h-kCzMp-L7Q/psuH7BGHoUmdONrzzUOY7A"; + private const string SDKKEY = "PKDVCLf-Hq-h-kCzMp-L7Q/psuH7BGHoUmdONrzzUOY7A"; private readonly MyHttpClientHandler httpClientHandler = new MyHttpClientHandler(); [TestInitialize] @@ -21,7 +21,7 @@ public void AutoPoll_WithHttpClientHandlerOverride_ShouldReturnCatUseCustomImple { // Arrange - var client = ConfigCatClientBuilder.Initialize(APIKEY) + var client = ConfigCatClientBuilder.Initialize(SDKKEY) .WithAutoPoll() .WithHttpClientHandler(httpClientHandler) .Create(); @@ -41,7 +41,7 @@ public void ManualPoll_WithHttpClientHandlerOverride_ShouldReturnCatUseCustomImp { // Arrange - var client = ConfigCatClientBuilder.Initialize(APIKEY) + var client = ConfigCatClientBuilder.Initialize(SDKKEY) .WithManualPoll() .WithHttpClientHandler(httpClientHandler) .Create(); @@ -62,7 +62,7 @@ public void LazyLoad_WithHttpClientHandlerOverride_ShouldReturnCatUseCustomImple { // Arrange - var client = ConfigCatClientBuilder.Initialize(APIKEY) + var client = ConfigCatClientBuilder.Initialize(SDKKEY) .WithLazyLoad() .WithHttpClientHandler(httpClientHandler) .Create(); diff --git a/src/ConfigCatClient/ConfigCatClient.cs b/src/ConfigCatClient/ConfigCatClient.cs index 7cff06d1..bf9af72c 100644 --- a/src/ConfigCatClient/ConfigCatClient.cs +++ b/src/ConfigCatClient/ConfigCatClient.cs @@ -39,9 +39,9 @@ public LogLevel LogLevel /// /// Create an instance of ConfigCatClient and setup AutoPoll mode /// - /// Api key to access configuration - /// When the is null or empty - public ConfigCatClient(string apiKey) : this(new AutoPollConfiguration { ApiKey = apiKey }) + /// SDK Key to access configuration + /// When the is null or empty + public ConfigCatClient(string sdkKey) : this(new AutoPollConfiguration { SdkKey = sdkKey }) { } @@ -216,11 +216,11 @@ public void Dispose() /// /// Create a instance to setup the client /// - /// + /// /// - public static ConfigCatClientBuilder Create(string apiKey) + public static ConfigCatClientBuilder Create(string sdkKey) { - return ConfigCatClientBuilder.Initialize(apiKey); + return ConfigCatClientBuilder.Initialize(sdkKey); } } } \ No newline at end of file diff --git a/src/ConfigCatClient/ConfigCatClientBuilder.cs b/src/ConfigCatClient/ConfigCatClientBuilder.cs index 6b6fccc8..1ee0e725 100644 --- a/src/ConfigCatClient/ConfigCatClientBuilder.cs +++ b/src/ConfigCatClient/ConfigCatClientBuilder.cs @@ -5,18 +5,18 @@ /// public class ConfigCatClientBuilder { - internal string ApiKey { get; private set; } + internal string SdkKey { get; private set; } internal ILogger Logger { get; private set; } = new ConsoleLogger(); /// - /// Create a instance with + /// Create a instance with /// /// - public static ConfigCatClientBuilder Initialize(string apiKey) + public static ConfigCatClientBuilder Initialize(string sdkKey) { return new ConfigCatClientBuilder { - ApiKey = apiKey + SdkKey = sdkKey }; } diff --git a/src/ConfigCatClient/Configuration/ConfigurationBase.cs b/src/ConfigCatClient/Configuration/ConfigurationBase.cs index 6e166da9..d76e70e5 100644 --- a/src/ConfigCatClient/Configuration/ConfigurationBase.cs +++ b/src/ConfigCatClient/Configuration/ConfigurationBase.cs @@ -26,9 +26,9 @@ public ILogger Logger } /// - /// Api key to get your configuration + /// SDK Key to get your configuration /// - public string ApiKey { set; get; } + public string SdkKey { set; get; } /// /// If you want to use custom caching instead of the client's default InMemoryConfigCache, You can provide an implementation of IConfigCache. @@ -47,9 +47,9 @@ public ILogger Logger internal virtual void Validate() { - if (string.IsNullOrEmpty(this.ApiKey)) + if (string.IsNullOrEmpty(this.SdkKey)) { - throw new ArgumentException("Invalid api key value.", nameof(this.ApiKey)); + throw new ArgumentException("Invalid SDK Key.", nameof(this.SdkKey)); } if (this.Logger == null) @@ -60,7 +60,7 @@ internal virtual void Validate() internal Uri CreateUrl() { - return new Uri(BaseUrl, "configuration-files/" + this.ApiKey + "/config_v4.json"); + return new Uri(BaseUrl, "configuration-files/" + this.SdkKey + "/config_v4.json"); } } } \ No newline at end of file diff --git a/src/ConfigCatClient/Configuration/ConfigurationBuilderBase.cs b/src/ConfigCatClient/Configuration/ConfigurationBuilderBase.cs index 6baeb131..eb9b866b 100644 --- a/src/ConfigCatClient/Configuration/ConfigurationBuilderBase.cs +++ b/src/ConfigCatClient/Configuration/ConfigurationBuilderBase.cs @@ -12,7 +12,7 @@ internal ConfigurationBuilderBase(ConfigCatClientBuilder clientBuilder) { this.configuration = new T { - ApiKey = clientBuilder.ApiKey, + SdkKey = clientBuilder.SdkKey, Logger = clientBuilder.Logger }; } diff --git a/src/ConfigCatClient/HttpConfigFetcher.cs b/src/ConfigCatClient/HttpConfigFetcher.cs index 895b04c7..397cd7ef 100644 --- a/src/ConfigCatClient/HttpConfigFetcher.cs +++ b/src/ConfigCatClient/HttpConfigFetcher.cs @@ -65,7 +65,7 @@ public async Task Fetch(ProjectConfig lastConfig) { newConfig = lastConfig; - this.log.Error("Double-check your API KEY at https://app.configcat.com/apikey"); + this.log.Error("Double-check your SDK Key at https://app.configcat.com/sdkkey"); } else {