1
0

Add Dispose function to CityListComponent.

This commit is contained in:
Kevin Matsubara 2025-03-29 16:34:07 +01:00
parent b9e4f44d5d
commit b39211b1d5

View File

@ -1,3 +1,4 @@
@implements IDisposable
@if (cities != null && cities.Count > 0) @if (cities != null && cities.Count > 0)
{ {
@ -31,4 +32,10 @@
this.selectedCity = cityName; this.selectedCity = cityName;
SelectCityCallBack.InvokeAsync(cityName); SelectCityCallBack.InvokeAsync(cityName);
} }
public void Dispose()
{
var guid = Guid.NewGuid();
Console.WriteLine($"CityListComponent: {nameof(Dispose)} : {guid}");
}
} }