This commit is contained in:
Jason Gilbertson 2021-04-18 18:48:47 -04:00
Родитель 2e8b0e971a
Коммит 7bc03d75a9
2 изменённых файлов: 41 добавлений и 3 удалений

Просмотреть файл

@ -1,5 +1,17 @@
# Change log
## 4/18/2021
- fix potential scenario where blob could be deleted from storage by hardcoding RetainBlobOnSuccess = true
- fix issue where uriString may be null for temporary container or ingestionqueue resources for kusto upload
- fix nuget warnings during build for net5.0
- split properties from ConfigurationOptions.cs into ConfigurationProperties.cs for class reuse
- allow new ConfigurationOptions instances to be used.
- add ConfigurationOptions argument to Collector
- ConfigurationOptions
- add DefaultConfiguration to ConfigurationOptions populated with default 'collectsfdata.options.json' and any commandline arguments if passed to constructor
- update [dllConfiguration](./docs/dllConfiguration.md)
## 04/08/2021
- add AzureClientCertificate property for use with AzureTenantId and AzureClientId for confidentialClient authentication with certificate in LocalMachine or CurrentUser My

Просмотреть файл

@ -79,6 +79,32 @@ After CollectSFData nuget package has been added to project, use the following i
Minimum configuration has to be set before calling Collector.Collect(). The main configuration is the type of data to collect with configuration option 'GatherType'. Configuration can be set by command line arguments, configuration file, or by using ConfigurationOptions class before calling Collector.Collect(). See [configuration](./configuration.md).
ConfigurationOptions constructor can be used to pass commandline 'args'. Default option file 'collectsfdata.options.json' and 'args' if any will be added to a static base DefaultConfiguration. Use GetDefaultConfiguration() and SetDefaultConfiguration() if modification is needed.
#### Example ConfigurationOptions default Constructor
```c#
ConfigurationOptions config = new ConfigurationOptions();
```
#### Example to use ConfigurationOptions constructor passing command line arguments from Main(string[] args)
```c#
ConfigurationOptions config = new ConfigurationOptions(args);
```
#### Example to reuse existing configuration after collect using Clone()
```c#
ConfigurationOptions config = collector.Config.Clone();
```
#### Example to reuse existing configuration after collect using Clone()
```c#
ConfigurationOptions config = collector.Config.Clone();
```
### Calling Collector.Collect()
Once configuration options have been set, call Collector.Collect().
@ -87,7 +113,7 @@ Use Clone() to create a shallow copy of existing configuration.
See examples below on how to use:
### Example
#### Example
```c#
private static int Main(string[] args)
@ -107,7 +133,7 @@ private static int Main(string[] args)
}
```
### Example
#### Example
```c#
private static int Main(string[] args)
@ -128,7 +154,7 @@ private static int Main(string[] args)
}
```
### Example
#### Example
```c#
private static int Main(string[] args)