Skip to content

Commit 0986a2e

Browse files
Add .NET 7.0 Support (#130)
* Add .NET 7.0 Support * Update build.yml * Update GitHubApiStatus.Extensions.UnitTests.csproj * Update unittests.yml * `dotnet format` * `dotnet format`
1 parent 7b6bdfc commit 0986a2e

44 files changed

Lines changed: 1378 additions & 13640 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ jobs:
1313
runs-on: macos-latest
1414

1515
steps:
16-
- uses: actions/checkout@v1
16+
- uses: actions/checkout@v3
1717

18-
- name: Setup .NET v6.0
19-
uses: actions/setup-dotnet@v1
18+
- name: Setup .NET v7.0
19+
uses: actions/setup-dotnet@v3
2020
with:
21-
dotnet-version: "6.0.x"
21+
dotnet-version: "7.0.x"
2222

2323
- name: Install .NET MAUI Workload
2424
run: |
@@ -32,18 +32,18 @@ jobs:
3232
MobileProjectDirectory=`dirname $MobileProject`
3333
echo $MobileProjectDirectory
3434
35-
dotnet build $MobileProjectDirectory -f:net6.0-android -c Release
35+
dotnet build $MobileProjectDirectory -f:net7.0-android -c Release
3636
3737
iOS:
3838
runs-on: macos-12
3939

4040
steps:
41-
- uses: actions/checkout@v1
41+
- uses: actions/checkout@v3
4242

43-
- name: Setup .NET v6.0
44-
uses: actions/setup-dotnet@v1
43+
- name: Setup .NET v7.0
44+
uses: actions/setup-dotnet@v3
4545
with:
46-
dotnet-version: "6.0.x"
46+
dotnet-version: "7.0.x"
4747

4848
- name: Install .NET MAUI Workload
4949
run: |
@@ -62,18 +62,18 @@ jobs:
6262
MobileProjectDirectory=`dirname $MobileProject`
6363
echo $MobileProjectDirectory
6464
65-
dotnet build $MobileProjectDirectory -f:net6.0-ios -c Release
65+
dotnet build $MobileProjectDirectory -f:net7.0-ios -c Release
6666
6767
MacCatalyst:
6868
runs-on: macos-12
6969

7070
steps:
71-
- uses: actions/checkout@v1
71+
- uses: actions/checkout@v3
7272

73-
- name: Setup .NET v6.0
74-
uses: actions/setup-dotnet@v1
73+
- name: Setup .NET v7.0
74+
uses: actions/setup-dotnet@v3
7575
with:
76-
dotnet-version: "6.0.x"
76+
dotnet-version: "7.0.x"
7777

7878
- name: Install .NET MAUI Workload
7979
run: |
@@ -92,23 +92,23 @@ jobs:
9292
MobileProjectDirectory=`dirname $MobileProject`
9393
echo $MobileProjectDirectory
9494
95-
dotnet build $MobileProjectDirectory -f:net6.0-maccatalyst -c Release
95+
dotnet build $MobileProjectDirectory -f:net7.0-maccatalyst -c Release
9696
9797
Windows:
9898
runs-on: windows-latest
9999

100100
steps:
101-
- uses: actions/checkout@v1
101+
- uses: actions/checkout@v3
102102

103103
- uses: actions/setup-java@v2
104104
with:
105105
distribution: 'microsoft'
106106
java-version: '11'
107107

108-
- name: Setup .NET v6.0
109-
uses: actions/setup-dotnet@v1
108+
- name: Setup .NET v7.0
109+
uses: actions/setup-dotnet@v3
110110
with:
111-
dotnet-version: "6.0.x"
111+
dotnet-version: "7.0.x"
112112

113113
- name: Install .NET MAUI Workload
114114
run: |
@@ -122,12 +122,12 @@ jobs:
122122
runs-on: macos-latest
123123

124124
steps:
125-
- uses: actions/checkout@v1
125+
- uses: actions/checkout@v3
126126

127-
- name: Setup .NET v6.0
128-
uses: actions/setup-dotnet@v1
127+
- name: Setup .NET v7.0
128+
uses: actions/setup-dotnet@v3
129129
with:
130-
dotnet-version: '6.0.x'
130+
dotnet-version: '7.0.x'
131131

132132
- name: Build API App
133133
run: |
@@ -143,12 +143,12 @@ jobs:
143143
runs-on: macos-latest
144144

145145
steps:
146-
- uses: actions/checkout@v1
146+
- uses: actions/checkout@v3
147147

148-
- name: Setup .NET v6.0
149-
uses: actions/setup-dotnet@v1
148+
- name: Setup .NET v7.0
149+
uses: actions/setup-dotnet@v3
150150
with:
151-
dotnet-version: '6.0.x'
151+
dotnet-version: '7.0.x'
152152

153153
- name: Build Console App
154154
run: |
@@ -164,12 +164,12 @@ jobs:
164164
runs-on: macos-latest
165165

166166
steps:
167-
- uses: actions/checkout@v1
167+
- uses: actions/checkout@v3
168168

169-
- name: Setup .NET v6.0
170-
uses: actions/setup-dotnet@v1
169+
- name: Setup .NET v7.0
170+
uses: actions/setup-dotnet@v3
171171
with:
172-
dotnet-version: '6.0.x'
172+
dotnet-version: '7.0.x'
173173

174174
- name: Build Web App
175175
run: |
@@ -185,12 +185,12 @@ jobs:
185185
runs-on: macos-latest
186186

187187
steps:
188-
- uses: actions/checkout@v1
188+
- uses: actions/checkout@v3
189189

190-
- name: Setup .NET v6.0
191-
uses: actions/setup-dotnet@v1
190+
- name: Setup .NET v7.0
191+
uses: actions/setup-dotnet@v3
192192
with:
193-
dotnet-version: '6.0.x'
193+
dotnet-version: '7.0.x'
194194

195195
- name: Build Web App
196196
run: |

.github/workflows/unittests.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,16 @@ jobs:
1616
GitHubPersonalAccessToken: ${{ secrets.GitHubPersonalAccessToken }}
1717

1818
steps:
19-
- uses: actions/checkout@v1
19+
- uses: actions/checkout@v3
2020

21-
- name: Setup .NET v6.0
22-
uses: actions/setup-dotnet@v1
21+
- name: Install .NET
22+
uses: actions/setup-dotnet@v3
2323
with:
24-
dotnet-version: '6.0.x'
25-
26-
- name: Setup .NET v5.0
27-
uses: actions/setup-dotnet@v1
28-
with:
29-
dotnet-version: '5.0.x'
30-
31-
- name: Setup .NET Core v3.1
32-
uses: actions/setup-dotnet@v1
33-
with:
34-
dotnet-version: '3.1.x'
35-
36-
- name: Setup .NET Core v2.1
37-
uses: actions/setup-dotnet@v1
38-
with:
39-
dotnet-version: '2.1.x'
24+
dotnet-version: |
25+
7.0.x
26+
6.0.x
27+
3.1.x
28+
2.1.x
4029
4130
- name: Inject GitHub Personal Access Token
4231
run: |

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
3-
"version": "6.0.3",
3+
"version": "7.0.100",
44
"rollForward": "latestMajor"
55
}
66
}

samples/GitStatus.API/GitStatus.API.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net7.0</TargetFramework>
55
<AzureFunctionsVersion>v4</AzureFunctionsVersion>
66
<OutputType>Exe</OutputType>
77
<_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput>

samples/GitStatus.ConsoleApp/GitStatus.ConsoleApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net6.0</TargetFramework>
5+
<TargetFramework>net7.0</TargetFramework>
66
<AssemblyName>GitStatus.ConsoleApp</AssemblyName>
77
</PropertyGroup>
88
<ItemGroup>

samples/GitStatus.ConsoleApp/Program.cs

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -16,62 +16,62 @@ static async Task Main(string[] args)
1616
{
1717
var restApiRateLimitDataFromHeaders = await GetRestApiRateLimitDataFromHeaders();
1818

19-
Console.WriteLine($"What is the GitHub REST API Rate Limit? {restApiRateLimitDataFromHeaders.RateLimit}"); // What is the GitHub REST API Rate Limit? 5000
20-
Console.WriteLine($"Have I reached the Maximum REST API Limit? {restApiRateLimitDataFromHeaders.HasReachedMaximumApiLimit}"); // Have I reached the Maximum REST API Limit? False
21-
Console.WriteLine($"How many REST API requests do I have remaining? {restApiRateLimitDataFromHeaders.RemainingRequestCount}"); // How many REST API requests do I have remaining? 4956
22-
Console.WriteLine($"How long until the GitHub REST API Rate Limit resets? {restApiRateLimitDataFromHeaders.RateLimitTimeRemaining}"); // How long until the GitHub REST API Rate Limit resets? 00:29:12.4134330
23-
Console.WriteLine($"Did the GitHub REST API Request include a Bearer Token? {restApiRateLimitDataFromHeaders.IsResponseFromAuthenticatedRequest}"); // Did GitHub REST API Request include a Bearer Token? True
24-
25-
Console.WriteLine();
26-
27-
var apiRateLimits = await GetApiRateLimits();
28-
29-
// REST API Results
30-
Console.WriteLine($"What is the GitHub REST API Rate Limit? {apiRateLimits.RestApi.RateLimit}"); // What is the GitHub REST API Rate Limit? 5000
31-
Console.WriteLine($"How many REST API requests do I have remaining? {apiRateLimits.RestApi.RemainingRequestCount}"); // How many REST API requests do I have remaining? 4983
32-
Console.WriteLine($"How long until the GitHub REST API Rate Limit resets? {apiRateLimits.RestApi.RateLimitReset_TimeRemaining}"); // How long until the GitHub REST API Rate Limit resets? 00:40:13.8035515
33-
Console.WriteLine($"When does the GitHub REST API Rate Limit reset? {apiRateLimits.RestApi.RateLimitReset_DateTime}"); // When does the GitHub REST API Rate Limit reset? 10/29/2020 3:28:58 AM +00:00
34-
35-
Console.WriteLine();
36-
37-
// GraphQL API Results
38-
Console.WriteLine($"What is the GitHub GraphQL API Rate Limit? {apiRateLimits.GraphQLApi.RateLimit}"); // What is the GitHub GraphQL API Rate Limit? 5000
39-
Console.WriteLine($"How many GraphQL API requests do I have remaining? {apiRateLimits.GraphQLApi.RemainingRequestCount}"); // How many GraphQL API requests do I have remaining? 5000
40-
Console.WriteLine($"How long until the GitHub GraphQL API Rate Limit resets? {apiRateLimits.GraphQLApi.RateLimitReset_TimeRemaining}"); // How long until the GitHub GraphQL API Rate Limit resets? 00:59:59.8034526
41-
Console.WriteLine($"When does the GitHub GraphQL API Rate Limit reset? {apiRateLimits.GraphQLApi.RateLimitReset_DateTime}"); // When does the GitHub GraphQL API Rate Limit reset? 10/29/2020 3:48:44 AM +00:00
42-
43-
Console.WriteLine();
44-
45-
// Search API Results
46-
Console.WriteLine($"What is the GitHub Search API Rate Limit? {apiRateLimits.SearchApi.RateLimit}"); // What is the GitHub Search API Rate Limit? 30
47-
Console.WriteLine($"How many Search API requests do I have remaining? {apiRateLimits.SearchApi.RemainingRequestCount}"); // How many Search API requests do I have remaining? 30
48-
Console.WriteLine($"How long until the GitHub Search API Rate Limit resets? {apiRateLimits.SearchApi.RateLimitReset_TimeRemaining}"); // How long until the GitHub Search API Rate Limit resets? 00:00:59.8034988
49-
Console.WriteLine($"When does the GitHub Search API Rate Limit reset? {apiRateLimits.SearchApi.RateLimitReset_DateTime}"); // When does the GitHub Search API Rate Limit reset? 10/29/2020 2:49:44 AM +00:00
50-
51-
Console.WriteLine();
52-
53-
// Source Import API Results
54-
Console.WriteLine($"What is the GitHub Source Import API Rate Limit? {apiRateLimits.SourceImport.RateLimit}"); // What is the GitHub Source Import API Rate Limit? 100
55-
Console.WriteLine($"How many Source Import API requests do I have remaining? {apiRateLimits.SourceImport.RemainingRequestCount}"); // How many Source Import API requests do I have remaining? 100
56-
Console.WriteLine($"How long until the GitHub Source Import API Rate Limit resets? {apiRateLimits.SourceImport.RateLimitReset_TimeRemaining}"); // How long until the GitHub Source Import API Rate Limit resets? 00:00:59.8034154
57-
Console.WriteLine($"When does the GitHub Source Import API Rate Limit reset? {apiRateLimits.SourceImport.RateLimitReset_DateTime}"); // When does the GitHub Source Import API Rate Limit reset? 10/29/2020 2:49:44 AM +00:00
58-
59-
Console.WriteLine();
60-
61-
// App Manifest Configuration API Results
62-
Console.WriteLine($"What is the GitHub App Manifest Configuration API Rate Limit? {apiRateLimits.AppManifestConfiguration.RateLimit}"); // What is the GitHub App Manifest Configuration API Rate Limit? 5000
63-
Console.WriteLine($"How many App Manifest Configuration API requests do I have remaining? {apiRateLimits.AppManifestConfiguration.RemainingRequestCount}"); // How many App Manifest Configuration API requests do I have remaining? 5000
64-
Console.WriteLine($"How long until the GitHub App Manifest Configuration API Rate Limit resets? {apiRateLimits.AppManifestConfiguration.RateLimitReset_TimeRemaining}"); // How long until the GitHub App Manifest Configuration API Rate Limit resets? 00:59:59.8033802
65-
Console.WriteLine($"When does the GitHub App Manifest Configuration API Rate Limit reset? {apiRateLimits.AppManifestConfiguration.RateLimitReset_DateTime}"); // When does the GitHub App Manifest Configuration API Rate Limit reset? 10/29/2020 3:48:44 AM +00:00
66-
19+
Console.WriteLine($"What is the GitHub REST API Rate Limit? {restApiRateLimitDataFromHeaders.RateLimit}"); // What is the GitHub REST API Rate Limit? 5000
20+
Console.WriteLine($"Have I reached the Maximum REST API Limit? {restApiRateLimitDataFromHeaders.HasReachedMaximumApiLimit}"); // Have I reached the Maximum REST API Limit? False
21+
Console.WriteLine($"How many REST API requests do I have remaining? {restApiRateLimitDataFromHeaders.RemainingRequestCount}"); // How many REST API requests do I have remaining? 4956
22+
Console.WriteLine($"How long until the GitHub REST API Rate Limit resets? {restApiRateLimitDataFromHeaders.RateLimitTimeRemaining}"); // How long until the GitHub REST API Rate Limit resets? 00:29:12.4134330
23+
Console.WriteLine($"Did the GitHub REST API Request include a Bearer Token? {restApiRateLimitDataFromHeaders.IsResponseFromAuthenticatedRequest}"); // Did GitHub REST API Request include a Bearer Token? True
24+
6725
Console.WriteLine();
6826

69-
// Code Scanning Upload API Results
70-
Console.WriteLine($"What is the GitHub Code Scanning Upload API Rate Limit? {apiRateLimits.CodeScanningUpload.RateLimit}"); // What is the GitHub Code Scanning Upload API Rate Limit? 500
71-
Console.WriteLine($"How many Code Scanning Upload API requests do I have remaining? {apiRateLimits.CodeScanningUpload.RemainingRequestCount}"); // How many Code Scanning Upload API requests do I have remaining? 500
72-
Console.WriteLine($"How long until the GitHub Code Scanning Upload API Rate Limit resets? {apiRateLimits.CodeScanningUpload.RateLimitReset_TimeRemaining}"); // How long until the GitHub Code Scanning Upload API Rate Limit resets? 00:59:59.8033455
73-
Console.WriteLine($"When does the GitHub Code Scanning Upload API Rate Limit reset? {apiRateLimits.CodeScanningUpload.RateLimitReset_DateTime}"); // When does the GitHub Code Scanning Upload API Rate Limit reset? 10/29/2020 3:48:44 AM +00:00
74-
27+
var apiRateLimits = await GetApiRateLimits();
28+
29+
// REST API Results
30+
Console.WriteLine($"What is the GitHub REST API Rate Limit? {apiRateLimits.RestApi.RateLimit}"); // What is the GitHub REST API Rate Limit? 5000
31+
Console.WriteLine($"How many REST API requests do I have remaining? {apiRateLimits.RestApi.RemainingRequestCount}"); // How many REST API requests do I have remaining? 4983
32+
Console.WriteLine($"How long until the GitHub REST API Rate Limit resets? {apiRateLimits.RestApi.RateLimitReset_TimeRemaining}"); // How long until the GitHub REST API Rate Limit resets? 00:40:13.8035515
33+
Console.WriteLine($"When does the GitHub REST API Rate Limit reset? {apiRateLimits.RestApi.RateLimitReset_DateTime}"); // When does the GitHub REST API Rate Limit reset? 10/29/2020 3:28:58 AM +00:00
34+
35+
Console.WriteLine();
36+
37+
// GraphQL API Results
38+
Console.WriteLine($"What is the GitHub GraphQL API Rate Limit? {apiRateLimits.GraphQLApi.RateLimit}"); // What is the GitHub GraphQL API Rate Limit? 5000
39+
Console.WriteLine($"How many GraphQL API requests do I have remaining? {apiRateLimits.GraphQLApi.RemainingRequestCount}"); // How many GraphQL API requests do I have remaining? 5000
40+
Console.WriteLine($"How long until the GitHub GraphQL API Rate Limit resets? {apiRateLimits.GraphQLApi.RateLimitReset_TimeRemaining}"); // How long until the GitHub GraphQL API Rate Limit resets? 00:59:59.8034526
41+
Console.WriteLine($"When does the GitHub GraphQL API Rate Limit reset? {apiRateLimits.GraphQLApi.RateLimitReset_DateTime}"); // When does the GitHub GraphQL API Rate Limit reset? 10/29/2020 3:48:44 AM +00:00
42+
43+
Console.WriteLine();
44+
45+
// Search API Results
46+
Console.WriteLine($"What is the GitHub Search API Rate Limit? {apiRateLimits.SearchApi.RateLimit}"); // What is the GitHub Search API Rate Limit? 30
47+
Console.WriteLine($"How many Search API requests do I have remaining? {apiRateLimits.SearchApi.RemainingRequestCount}"); // How many Search API requests do I have remaining? 30
48+
Console.WriteLine($"How long until the GitHub Search API Rate Limit resets? {apiRateLimits.SearchApi.RateLimitReset_TimeRemaining}"); // How long until the GitHub Search API Rate Limit resets? 00:00:59.8034988
49+
Console.WriteLine($"When does the GitHub Search API Rate Limit reset? {apiRateLimits.SearchApi.RateLimitReset_DateTime}"); // When does the GitHub Search API Rate Limit reset? 10/29/2020 2:49:44 AM +00:00
50+
51+
Console.WriteLine();
52+
53+
// Source Import API Results
54+
Console.WriteLine($"What is the GitHub Source Import API Rate Limit? {apiRateLimits.SourceImport.RateLimit}"); // What is the GitHub Source Import API Rate Limit? 100
55+
Console.WriteLine($"How many Source Import API requests do I have remaining? {apiRateLimits.SourceImport.RemainingRequestCount}"); // How many Source Import API requests do I have remaining? 100
56+
Console.WriteLine($"How long until the GitHub Source Import API Rate Limit resets? {apiRateLimits.SourceImport.RateLimitReset_TimeRemaining}"); // How long until the GitHub Source Import API Rate Limit resets? 00:00:59.8034154
57+
Console.WriteLine($"When does the GitHub Source Import API Rate Limit reset? {apiRateLimits.SourceImport.RateLimitReset_DateTime}"); // When does the GitHub Source Import API Rate Limit reset? 10/29/2020 2:49:44 AM +00:00
58+
59+
Console.WriteLine();
60+
61+
// App Manifest Configuration API Results
62+
Console.WriteLine($"What is the GitHub App Manifest Configuration API Rate Limit? {apiRateLimits.AppManifestConfiguration.RateLimit}"); // What is the GitHub App Manifest Configuration API Rate Limit? 5000
63+
Console.WriteLine($"How many App Manifest Configuration API requests do I have remaining? {apiRateLimits.AppManifestConfiguration.RemainingRequestCount}"); // How many App Manifest Configuration API requests do I have remaining? 5000
64+
Console.WriteLine($"How long until the GitHub App Manifest Configuration API Rate Limit resets? {apiRateLimits.AppManifestConfiguration.RateLimitReset_TimeRemaining}"); // How long until the GitHub App Manifest Configuration API Rate Limit resets? 00:59:59.8033802
65+
Console.WriteLine($"When does the GitHub App Manifest Configuration API Rate Limit reset? {apiRateLimits.AppManifestConfiguration.RateLimitReset_DateTime}"); // When does the GitHub App Manifest Configuration API Rate Limit reset? 10/29/2020 3:48:44 AM +00:00
66+
67+
Console.WriteLine();
68+
69+
// Code Scanning Upload API Results
70+
Console.WriteLine($"What is the GitHub Code Scanning Upload API Rate Limit? {apiRateLimits.CodeScanningUpload.RateLimit}"); // What is the GitHub Code Scanning Upload API Rate Limit? 500
71+
Console.WriteLine($"How many Code Scanning Upload API requests do I have remaining? {apiRateLimits.CodeScanningUpload.RemainingRequestCount}"); // How many Code Scanning Upload API requests do I have remaining? 500
72+
Console.WriteLine($"How long until the GitHub Code Scanning Upload API Rate Limit resets? {apiRateLimits.CodeScanningUpload.RateLimitReset_TimeRemaining}"); // How long until the GitHub Code Scanning Upload API Rate Limit resets? 00:59:59.8033455
73+
Console.WriteLine($"When does the GitHub Code Scanning Upload API Rate Limit reset? {apiRateLimits.CodeScanningUpload.RateLimitReset_DateTime}"); // When does the GitHub Code Scanning Upload API Rate Limit reset? 10/29/2020 3:48:44 AM +00:00
74+
7575
Console.WriteLine();
7676
}
7777

samples/GitStatus.Mobile/GitStatus.Mobile.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net6.0-android;net6.0-ios;net6.0-maccatalyst</TargetFrameworks>
5-
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net6.0-windows10.0.19041.0</TargetFrameworks>
4+
<TargetFrameworks>net7.0-android;net7.0-ios;net7.0-maccatalyst</TargetFrameworks>
5+
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net7.0-windows10.0.19041.0</TargetFrameworks>
66
<!-- Uncomment to also build the tizen app. You will need to install tizen by following this: https://github.com/Samsung/Tizen.NET -->
77
<!-- <TargetFrameworks>$(TargetFrameworks);net6.0-tizen</TargetFrameworks> -->
88
<OutputType>Exe</OutputType>

samples/GitStatus.Mobile/MauiProgram.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ public static MauiApp CreateMauiApp()
1818
{
1919
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
2020
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
21-
});
22-
23-
// Add Pages + ViewModels
21+
});
22+
23+
// Add Pages + ViewModels
2424
builder.Services.AddTransient<AppShell>();
2525
builder.Services.AddTransientWithShellRoute<GraphQLApiStatusPage, GraphQLApiStatusViewModel>();
26-
builder.Services.AddTransientWithShellRoute<RestApiStatusPage, RestApiStatusViewModel>();
27-
28-
// Add Services
26+
builder.Services.AddTransientWithShellRoute<RestApiStatusPage, RestApiStatusViewModel>();
27+
28+
// Add Services
2929
builder.Services.AddGitHubApiStatusService(new AuthenticationHeaderValue(GitHubConstants.AuthScheme, GitHubConstants.PersonalAccessToken), new ProductHeaderValue(nameof(GitStatus)));
3030

3131
return builder.Build();

0 commit comments

Comments
 (0)