Making properties automatic and changing the build definition to release
This commit is contained in:
Родитель
9321fc6ea9
Коммит
ba03436f9c
|
@ -13,8 +13,8 @@ $Projects = @(
|
|||
|
||||
$Commands = @(
|
||||
'restore',
|
||||
'build',
|
||||
'pack'
|
||||
'build -c Release',
|
||||
'pack -c Release'
|
||||
)
|
||||
|
||||
Function Execute-DotnetProcess {
|
||||
|
|
|
@ -5,39 +5,25 @@
|
|||
/// </summary>
|
||||
public class ApplicationInsightsServiceOptions
|
||||
{
|
||||
private bool enableQuickPulseMetricStream = true;
|
||||
private bool enableAdaptiveSampling = true;
|
||||
/// <summary>
|
||||
/// Application Insights service options that controlls the default behavior of application insights features.
|
||||
/// </summary>
|
||||
public ApplicationInsightsServiceOptions()
|
||||
{
|
||||
this.EnableQuickPulseMetricStream = true;
|
||||
this.EnableAdaptiveSampling = true;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Setting EnableQuickPulseMetricStream to false, will disable the default quick pulse metric stream. As a result, QuickPulseTelemetryModule
|
||||
/// and QuickPulseTelemetryProcessor are not registered with the configuration by default.
|
||||
/// </summary>
|
||||
public bool EnableQuickPulseMetricStream
|
||||
{
|
||||
get
|
||||
{
|
||||
return enableQuickPulseMetricStream;
|
||||
}
|
||||
set
|
||||
{
|
||||
enableQuickPulseMetricStream = value;
|
||||
}
|
||||
}
|
||||
public bool EnableQuickPulseMetricStream { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Setting EnableAdaptiveSampling to false, will disable the default adaptive sampling feature. As a result, no telemetry processor
|
||||
/// that controls sampling is added to the service by default.
|
||||
/// </summary>
|
||||
public bool EnableAdaptiveSampling
|
||||
{
|
||||
get
|
||||
{
|
||||
return enableAdaptiveSampling;
|
||||
}
|
||||
set
|
||||
{
|
||||
enableAdaptiveSampling = value;
|
||||
}
|
||||
}
|
||||
public bool EnableAdaptiveSampling { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче