Skip to content

Commit 1970265

Browse files
committed
fix structure in Summary
1 parent 0f3686b commit 1970265

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

examples/WebApiApplication/WebApiApplication.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<UseGlobalApplicationHostFile />
2424
<NuGetPackageImportStamp>
2525
</NuGetPackageImportStamp>
26+
<Use64BitIISExpress />
2627
</PropertyGroup>
2728
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2829
<DebugSymbols>true</DebugSymbols>
@@ -47,8 +48,8 @@
4748
<HintPath>..\..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.3\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll</HintPath>
4849
</Reference>
4950
<Reference Include="Microsoft.CSharp" />
50-
<Reference Include="protobuf-net, Version=2.3.1.0, Culture=neutral, PublicKeyToken=257b51d87d2e4d67, processorArchitecture=MSIL">
51-
<HintPath>..\..\packages\protobuf-net.2.3.1\lib\net40\protobuf-net.dll</HintPath>
51+
<Reference Include="protobuf-net, Version=2.3.2.0, Culture=neutral, PublicKeyToken=257b51d87d2e4d67, processorArchitecture=MSIL">
52+
<HintPath>..\..\packages\protobuf-net.2.3.2\lib\net40\protobuf-net.dll</HintPath>
5253
</Reference>
5354
<Reference Include="System.Net.Http" />
5455
<Reference Include="System.Web.DynamicData" />

examples/WebApiApplication/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
<package id="Microsoft.CodeDom.Providers.DotNetCompilerPlatform" version="1.0.3" targetFramework="net452" />
88
<package id="Microsoft.Net.Compilers" version="1.3.2" targetFramework="net452" developmentDependency="true" />
99
<package id="Newtonsoft.Json" version="6.0.4" targetFramework="net452" />
10-
<package id="protobuf-net" version="2.3.1" targetFramework="net452" />
10+
<package id="protobuf-net" version="2.3.2" targetFramework="net452" />
1111
</packages>

src/Prometheus.Client/SummaryImpl/Sample.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
// Sample holds an observed value and meta information for compression.
44
public struct Sample
55
{
6-
public double Value;
7-
public double Width;
8-
public double Delta;
6+
public double Value { get; set; }
7+
public double Width { get; set; }
8+
public double Delta { get; set; }
99
}
1010
}

src/Prometheus.Client/SummaryImpl/SampleStream.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ namespace Prometheus.Client.SummaryImpl
55
{
66
public class SampleStream
77
{
8-
public double N;
9-
readonly List<Sample> _samples = new List<Sample>();
10-
readonly Invariant _invariant;
8+
private readonly List<Sample> _samples = new List<Sample>();
9+
private readonly Invariant _invariant;
10+
11+
public double N { get; set; }
1112

1213
public SampleStream(Invariant invariant)
1314
{

0 commit comments

Comments
 (0)