Skip to content

Commit 23aa7f6

Browse files
committed
Updated Lib and Fixes
- updated secntfy nuget to 1.0.8 and made it async/await - bump version to 1.5.1.3 - fixed #214
1 parent b8b5305 commit 23aa7f6

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/dotnet.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
name: Build dotNet
119119
strategy:
120120
matrix:
121-
dotnet-version: [ '9.x' ]
121+
dotnet-version: [ '10.x' ]
122122
kind: [ 'amd64', 'arm64', 'armv7' ]
123123
include:
124124
- kind: amd64

Services/GotifySocketService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ public async void Start()
261261
var statusNtfyList = secntfyTokenList.Count == 0 ? "empty" : "filled";
262262
Console.WriteLine($"SecNtfy Token list is: {statusNtfyList}");
263263
Console.WriteLine(
264-
$"If one or more lists are empty please check the environment variable! GOTIFY_SERVERS or GOTIFY_CLIENTS or NTFY_TOKENS");
264+
$"If one or more lists are empty please check the environment variable! GOTIFY_URLS or GOTIFY_CLIENT_TOKENS or SECNTFY_TOKENS");
265265
Console.WriteLine(
266266
$"If all lists are empty do nothing, you will configure the gotify server over the iGotify app.");
267267
}
@@ -271,15 +271,15 @@ public async void Start()
271271
StartConnection(userList, secntfyUrl);
272272
}
273273

274-
private void StartConnection(List<Users> userList, string secntfyUrl)
274+
private async void StartConnection(List<Users> userList, string secntfyUrl)
275275
{
276276
foreach (var user in userList)
277277
{
278278
string isGotifyAvailable;
279279
string isSecNtfyAvailable;
280280
try
281281
{
282-
isGotifyAvailable = SecNtfy.CheckIfUrlReachable(user.GotifyUrl) ? "yes" : "no";
282+
isGotifyAvailable = await SecNtfy.CheckIfUrlReachable(user.GotifyUrl) ? "yes" : "no";
283283

284284
if (isGotifyAvailable == "no")
285285
{
@@ -296,7 +296,7 @@ private void StartConnection(List<Users> userList, string secntfyUrl)
296296

297297
try
298298
{
299-
bool isSecNtfyAvailableBool = SecNtfy.CheckIfUrlReachable(secntfyUrl);
299+
bool isSecNtfyAvailableBool = await SecNtfy.CheckIfUrlReachable(secntfyUrl);
300300
isSecNtfyAvailable = isSecNtfyAvailableBool ? "yes" : "no";
301301

302302
if (!isSecNtfyAvailableBool)

iGotify Notification Assist.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<ImplicitUsings>enable</ImplicitUsings>
77
<InvariantGlobalization>true</InvariantGlobalization>
88
<RootNamespace>iGotify_Notification_Assist</RootNamespace>
9-
<AssemblyVersion>1.5.1.2</AssemblyVersion>
10-
<FileVersion>1.5.1.2</FileVersion>
11-
<Version>1.5.1.2</Version>
9+
<AssemblyVersion>1.5.1.3</AssemblyVersion>
10+
<FileVersion>1.5.1.3</FileVersion>
11+
<Version>1.5.1.3</Version>
1212
<LangVersion>default</LangVersion>
1313
</PropertyGroup>
1414

@@ -19,7 +19,7 @@
1919
<PackageReference Include="Microsoft.Data.Sqlite" Version="10.0.1" />
2020
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
2121
<PackageReference Include="Scalar.AspNetCore" Version="2.11.10" />
22-
<PackageReference Include="secntfy.nuget" Version="1.0.6" />
22+
<PackageReference Include="secntfy.nuget" Version="1.0.8" />
2323
<PackageReference Include="Websocket.Client" Version="5.3.0" />
2424
</ItemGroup>
2525

0 commit comments

Comments
 (0)