Example #1
0
 public void WriteApiKeyToSettingFile(string apiKey)
 {
     var settings = new UserSettings(new PhysicalFileSystem(Environment.CurrentDirectory));
     settings.SetEncryptedValue(ApiKeysSectionName, PublishPackageLocation, apiKey);
 }
 public void WriteApiKey(string source, string apiKey)
 {
     var settings = new UserSettings(new PhysicalFileSystem(Environment.CurrentDirectory));
     settings.SetEncryptedValue(ApiKeysSectionName, source, apiKey);
 }