Skip to content

Commit ff154dd

Browse files
Updated the code snippets for Beta 4 method names (#53)
* Updated the code snippets for Beta 4 method names * Empty-Commit --------- Co-authored-by: Sam <[email protected]>
1 parent c4991d0 commit ff154dd

File tree

19 files changed

+26
-25
lines changed

19 files changed

+26
-25
lines changed

csharp/runner/SnippetRunner/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ SortedDictionary<string, SortedDictionary<string, string>> snippetsMap
263263
string source = properties[sourceKey];
264264
source = source.Trim();
265265
Console.WriteLine("Adding data source: " + source);
266-
config.AddDataSource(source);
266+
config.RegisterDataSource(source);
267267
}
268268
string snippetConfig = config.Export();
269269

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Deleting Data
2-
The configuration snippets outline how to modify the Senzing configuration, register the modified configuration with a configuration ID and update the default configuration ID for the repository.
2+
3+
The configuration snippets outline how to modify the Senzing configuration, register the modified configuration with a configuration ID and update the default configuration ID for the repository.
34

45
You may either `setDefaultConfigId()` or `replaceDefaultConfigId()`. Initially, the the default config ID must be set since there is no existing config ID to replace. However, when updating you may use `replaceDefaultConfigId()` to guard against race conditions of multiple threads or processes updating at the same time.
56

67
## Snippets
7-
* **AddDataSources.java**
8-
* Gets the current default config, creates a modified config with additional data sources, registers that modified config and then replaces the default config ID.
9-
* **InitDefaultConfig.java**
10-
* Initializes the repository with a default config ID using the template configuration provided by Senzing.
118

9+
* **RegisterDataSources.java**
10+
* Gets the current default config, creates a modified config with additional data sources, registers that modified config and then replaces the default config ID.
11+
* **InitDefaultConfig.java**
12+
* Initializes the repository with a default config ID using the template configuration provided by Senzing.

csharp/snippets/configuration/AddDataSources/Program.cs renamed to csharp/snippets/configuration/RegisterDataSources/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
// loop through the array and add each data source
4949
foreach (string dataSource in dataSources)
5050
{
51-
config.AddDataSource(dataSource);
51+
config.RegisterDataSource(dataSource);
5252
}
5353

5454
// prepare an in-memory config to be modified and get the handle

csharp/snippets/information/CheckDatastorePerformance/Program.cs renamed to csharp/snippets/information/CheckRepositoryPerformance/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{
3131
SzDiagnostic diagnostic = env.GetDiagnostic();
3232

33-
string result = diagnostic.CheckDatastorePerformance(SecondsToRun);
33+
string result = diagnostic.CheckRepositoryPerformance(SecondsToRun);
3434

3535
Console.WriteLine(result);
3636

0 commit comments

Comments
 (0)