Skip to content

Commit

Permalink
chore: update runtimes
Browse files Browse the repository at this point in the history
  • Loading branch information
phnx47 committed Oct 20, 2024
1 parent 09853c7 commit 51ca8b0
Show file tree
Hide file tree
Showing 31 changed files with 31 additions and 70 deletions.
12 changes: 6 additions & 6 deletions Prometheus.Client.Examples.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleMetricServer_6.0", "src\ConsoleMetricServer_6.0\ConsoleMetricServer_6.0.csproj", "{728A498E-8D38-45B9-A6DF-DEBEFB6563FD}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleMetricServer", "src\ConsoleMetricServer\ConsoleMetricServer.csproj", "{728A498E-8D38-45B9-A6DF-DEBEFB6563FD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoreWebWithoutExtensions_3.1", "src\CoreWebWithoutExtensions_3.1\CoreWebWithoutExtensions_3.1.csproj", "{A03FD2F8-8F18-44AB-9D01-16D15208B087}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebWithoutExtensions", "src\WebWithoutExtensions\WebWithoutExtensions.csproj", "{A03FD2F8-8F18-44AB-9D01-16D15208B087}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HealthChecks", "src\HealthChecks\HealthChecks.csproj", "{237FECAD-9D7C-43F4-A240-974A5ADE0DE7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AspNetCore_6.0", "src\AspNetCore_6.0\AspNetCore_6.0.csproj", "{297EA5CD-C468-40CA-A97C-8A5DC28CF701}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AspNetCore", "src\AspNetCore\AspNetCore.csproj", "{297EA5CD-C468-40CA-A97C-8A5DC28CF701}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HttpRequestDurations", "src\HttpRequestDurations\HttpRequestDurations.csproj", "{83246BAD-85BA-4532-84BF-70D18B7FF66A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebMetricPusher_3.1", "src\WebMetricPusher_3.1\WebMetricPusher_3.1.csproj", "{FC8559F9-D535-47C7-9964-AE754E8FB158}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebMetricPusher", "src\WebMetricPusher\WebMetricPusher.csproj", "{FC8559F9-D535-47C7-9964-AE754E8FB158}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WorkerMetricServer_6.0", "src\WorkerMetricServer_6.0\WorkerMetricServer_6.0.csproj", "{191C271F-F884-4C4F-8C8B-9A9C0B413104}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WorkerMetricServer", "src\WorkerMetricServer\WorkerMetricServer.csproj", "{191C271F-F884-4C4F-8C8B-9A9C0B413104}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HostedServiceMetricPusher_6.0", "src\HostedServiceMetricPusher_6.0\HostedServiceMetricPusher_6.0.csproj", "{9652546D-9A18-411D-8057-B6D1F5F32C5D}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HostedServiceMetricPusher", "src\HostedServiceMetricPusher\HostedServiceMetricPusher.csproj", "{9652546D-9A18-411D-8057-B6D1F5F32C5D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

This file was deleted.

9 changes: 0 additions & 9 deletions src/CoreWebWithoutExtensions_3.1/appsettings.Development.json

This file was deleted.

10 changes: 0 additions & 10 deletions src/CoreWebWithoutExtensions_3.1/appsettings.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Worker">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>HostedServiceMetricPusher_6.0</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Prometheus.Client" Version="5.2.0" />
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/HttpRequestDurations/HttpRequestDurations.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
<PackageReference Include="Prometheus.Client" Version="5.2.0" />
<PackageReference Include="Prometheus.Client.AspNetCore" Version="5.0.0" />
<PackageReference Include="Prometheus.Client.DependencyInjection" Version="1.4.0" />
<PackageReference Include="Prometheus.Client.HttpRequestDurations" Version="3.6.0.131-g1e3d7fa" />
<PackageReference Include="Prometheus.Client.HttpRequestDurations" Version="4.0.0" />
</ItemGroup>
</Project>
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>WebMetricPusher_3.1</RootNamespace>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Prometheus.Client" Version="5.2.0" />
<PackageReference Include="Prometheus.Client.HttpRequestDurations" Version="3.6.0" />
<PackageReference Include="Prometheus.Client.MetricPusher" Version="3.1.0" />
<PackageReference Include="Prometheus.Client.DependencyInjection" Version="1.4.0" />
</ItemGroup>
<ItemGroup>
<_ContentIncludedByDefault Remove="Properties\launchSettings.json" />
</ItemGroup>
</Project>
9 changes: 0 additions & 9 deletions src/WebMetricPusher_3.1/appsettings.Development.json

This file was deleted.

10 changes: 0 additions & 10 deletions src/WebMetricPusher_3.1/appsettings.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Mvc;
using Prometheus.Client;

namespace CoreWebWithoutExtensions_3._1.Controllers;
namespace WebWithoutExtensions.Controllers;

[Route("[controller]")]
public class CounterController : Controller
Expand All @@ -26,4 +26,4 @@ public IActionResult Get()

return Ok();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Mvc;
using Prometheus.Client;

namespace CoreWebWithoutExtensions_3._1.Controllers;
namespace WebWithoutExtensions.Controllers;

[Route("[controller]")]
public class HistogramController : Controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Prometheus.Client;
using Prometheus.Client.Collectors;

namespace CoreWebWithoutExtensions_3._1.Controllers;
namespace WebWithoutExtensions.Controllers;

[Route("[controller]")]
public class MetricsController : Controller
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace CoreWebWithoutExtensions_3._1;
namespace WebWithoutExtensions;

public class Program
{
Expand All @@ -16,4 +16,4 @@ public static IHostBuilder CreateHostBuilder(string[] args) =>
{
webBuilder.UseStartup<Startup>();
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Prometheus.Client.DependencyInjection;
using Prometheus.Client;
using Prometheus.Client.Collectors;

namespace CoreWebWithoutExtensions_3._1;
namespace WebWithoutExtensions;

public class Startup
{
Expand All @@ -19,17 +20,18 @@ public Startup(IConfiguration configuration)
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddMetricFactory();
services.AddSingleton<ICollectorRegistry, CollectorRegistry>();
services.AddSingleton<IMetricFactory, MetricFactory>();
}

// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
app.UseRouting();

app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
}
}
}
8 changes: 8 additions & 0 deletions src/WebWithoutExtensions/WebWithoutExtensions.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Prometheus.Client" Version="5.2.0" />
</ItemGroup>
</Project>
File renamed without changes.
File renamed without changes.

0 comments on commit 51ca8b0

Please sign in to comment.