Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebApi Service #28

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Setup .NET 5.0, 6.0, 7.0, 8.0
- name: Setup .NET 6.0, 7.0, 8.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
5.0.x
6.0.x
7.0.x
8.0.x
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<Version>0.0.18</Version>
<Authors>Tony Redondo, Grégory Léocadie</Authors>
<TargetFrameworks>net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>11</LangVersion>
Expand Down
13 changes: 13 additions & 0 deletions src/TimeIt.WebApiService/Class1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Builder;

namespace TimeIt.WebApiService;

public class Class1
{
public void Method()
{
var builder = WebApplication.CreateBuilder();
var app = builder.Build();
app.Run("http://localhost:8126");
}
}
6 changes: 6 additions & 0 deletions src/TimeIt.WebApiService/TimeIt.WebApiService.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\TimeIt.Common\TimeIt.Common.csproj" />
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
</Project>
6 changes: 6 additions & 0 deletions src/TimeIt/TimeIt.sln
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TimeIt.StartupHook", "..\Ti
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TimeIt.DatadogExporter", "..\TimeIt.DatadogExporter\TimeIt.DatadogExporter.csproj", "{5484AC8D-8054-4795-8781-1DA623057A46}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TimeIt.WebApiService", "..\TimeIt.WebApiService\TimeIt.WebApiService.csproj", "{925A003E-6C93-410D-B6C2-A77469EA62A3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -37,5 +39,9 @@ Global
{5484AC8D-8054-4795-8781-1DA623057A46}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5484AC8D-8054-4795-8781-1DA623057A46}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5484AC8D-8054-4795-8781-1DA623057A46}.Release|Any CPU.Build.0 = Release|Any CPU
{925A003E-6C93-410D-B6C2-A77469EA62A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{925A003E-6C93-410D-B6C2-A77469EA62A3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{925A003E-6C93-410D-B6C2-A77469EA62A3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{925A003E-6C93-410D-B6C2-A77469EA62A3}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal