diff --git a/build.ps1 b/build.ps1 index ae22b129..24ab619e 100644 --- a/build.ps1 +++ b/build.ps1 @@ -13,8 +13,8 @@ $Projects = @( $Commands = @( 'restore', - 'build', - 'pack' + 'build -c Release', + 'pack -c Release' ) Function Execute-DotnetProcess { diff --git a/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsServiceOptions.cs b/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsServiceOptions.cs index 7c3654f7..9cad51e8 100644 --- a/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsServiceOptions.cs +++ b/src/Microsoft.ApplicationInsights.AspNetCore/Extensions/ApplicationInsightsServiceOptions.cs @@ -5,39 +5,25 @@ /// public class ApplicationInsightsServiceOptions { - private bool enableQuickPulseMetricStream = true; - private bool enableAdaptiveSampling = true; + /// + /// Application Insights service options that controlls the default behavior of application insights features. + /// + public ApplicationInsightsServiceOptions() + { + this.EnableQuickPulseMetricStream = true; + this.EnableAdaptiveSampling = true; + } /// /// 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. /// - public bool EnableQuickPulseMetricStream - { - get - { - return enableQuickPulseMetricStream; - } - set - { - enableQuickPulseMetricStream = value; - } - } + public bool EnableQuickPulseMetricStream { get; set; } /// /// 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. /// - public bool EnableAdaptiveSampling - { - get - { - return enableAdaptiveSampling; - } - set - { - enableAdaptiveSampling = value; - } - } + public bool EnableAdaptiveSampling { get; set; } } }