Skip to content

Commit 9306e9f

Browse files
committed
Change IsOfflineChanged type
1 parent 7d85539 commit 9306e9f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Src/Drogecode.Blazor.ExpireStorage/Drogecode.Blazor.ExpireStorage.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<RootNamespace>Drogecode.Blazor.ExpireStorage</RootNamespace>
8-
<Version>0.2.0</Version>
8+
<Version>0.2.1</Version>
99
<Title>Drogecode.Blazor.ExpireStorage</Title>
1010
<Authors>Taco Droogers</Authors>
1111
<PackageProjectUrl>https://github.com/Drogecode/Drogecode.Blazor.ExpireStorage</PackageProjectUrl>

Src/Drogecode.Blazor.ExpireStorage/Services/ExpireStorageService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class ExpireStorageService : IExpireStorageService
1515
/// </summary>
1616
public static string? Postfix { get; set; }
1717

18-
public static EventCallback<bool> IsOfflineChanged { get; set; }
18+
public static event Func<bool, Task>? IsOfflineChanged;
1919

2020
/// <summary>
2121
/// True if the last request failed.
@@ -27,7 +27,7 @@ private set
2727
{
2828
if (field == value) return;
2929
field = value;
30-
IsOfflineChanged.InvokeAsync(field);
30+
IsOfflineChanged?.Invoke(field);
3131
}
3232
}
3333

0 commit comments

Comments
 (0)