Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Commit

Permalink
Making properties automatic and changing the build definition to release
Browse files Browse the repository at this point in the history
  • Loading branch information
kartang authored and kartang committed May 9, 2016
1 parent 9321fc6 commit ba03436
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 26 deletions.
4 changes: 2 additions & 2 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ $Projects = @(

$Commands = @(
'restore',
'build',
'pack'
'build -c Release',
'pack -c Release'
)

Function Execute-DotnetProcess {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
}

0 comments on commit ba03436

Please sign in to comment.