From 92948cfd401577233256d956b29eaa42840ae4a1 Mon Sep 17 00:00:00 2001 From: Eduardo Fonseca Date: Fri, 19 Apr 2024 07:45:49 -0600 Subject: [PATCH] adding missing implementations of IDisposable --- .../Components/Pages/Creator/MyVideoViewers.razor | 6 ++++++ .../FairPlayTube/Components/Pages/Creator/MyVideos.razor | 6 ++++++ .../Components/Pages/Creator/NewVideoRecommendation.razor | 7 +++++++ .../Components/Pages/Creator/NewVideoScript.razor | 7 +++++++ .../Components/Pages/Creator/VideoCaptions.razor | 6 ++++++ .../Components/Pages/Creator/VideoChapters.razor | 7 +++++++ .../Components/Pages/Creator/VideoDailyPosts.razor | 7 +++++++ .../Components/Pages/Creator/VideoDigitalMarketing.razor | 7 +++++++ .../Components/Pages/Creator/VideoInfographic.razor | 7 +++++++ .../Components/Pages/Creator/VideoLinkedInArticle.razor | 7 +++++++ .../Components/Pages/Creator/VideoPassiveIncome.razor | 7 +++++++ .../Components/Pages/Creator/YouTubeThumbnail.razor | 7 +++++++ 12 files changed, 81 insertions(+) diff --git a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/MyVideoViewers.razor b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/MyVideoViewers.razor index 581ed1ba..87cc0e81 100644 --- a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/MyVideoViewers.razor +++ b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/MyVideoViewers.razor @@ -1,4 +1,5 @@ @attribute [Route($"{Constants.Routes.FairPlayTubeRoutes.CreatorRoutes.MyVideoViewers}/{{VideoId}}")] +@implements IDisposable @using FairPlayCombined.Common @using FairPlayCombined.Interfaces @@ -80,4 +81,9 @@ }; this.IsBusy = false; } + + void IDisposable.Dispose() + { + this.cancellationTokenSource.Dispose(); + } } diff --git a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/MyVideos.razor b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/MyVideos.razor index 86f5a36b..3c0c7d8d 100644 --- a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/MyVideos.razor +++ b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/MyVideos.razor @@ -1,4 +1,5 @@ @attribute [Route(Constants.Routes.FairPlayTubeRoutes.CreatorRoutes.MyVideos)] +@implements IDisposable @using FairPlayCombined.Common @using FairPlayCombined.Interfaces @@ -150,4 +151,9 @@ { this.navigationManager.NavigateTo($"/Creator/VideoChapters/{videoInfoModel.VideoInfoId}"); } + + void IDisposable.Dispose() + { + this.cancellationTokenSource.Dispose(); + } } diff --git a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/NewVideoRecommendation.razor b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/NewVideoRecommendation.razor index 28d6dd35..64c7b75d 100644 --- a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/NewVideoRecommendation.razor +++ b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/NewVideoRecommendation.razor @@ -1,4 +1,6 @@ @page "/Creator/NewVideoRecommendation" +@implements IDisposable + @using FairPlayCombined.Common @using FairPlayCombined.Interfaces @using FairPlayCombined.Models.FairPlayTube.VideoInfo @@ -93,4 +95,9 @@ this.NewVideoRecommendationIdea = result!.choices![0]!.message!.content!; } } + + void IDisposable.Dispose() + { + this.cancellationTokenSource.Dispose(); + } } diff --git a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/NewVideoScript.razor b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/NewVideoScript.razor index b2a07079..5c74dc95 100644 --- a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/NewVideoScript.razor +++ b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/NewVideoScript.razor @@ -1,4 +1,6 @@ @page "/Creator/NewVideoScript" +@implements IDisposable + @using FairPlayCombined.Common @using FairPlayCombined.Interfaces @using FairPlayCombined.Models.FairPlayTube.NewVideoScript @@ -110,4 +112,9 @@ this.IsBusy = false; StateHasChanged(); } + + void IDisposable.Dispose() + { + this.cancellationTokenSource.Dispose(); + } } diff --git a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoCaptions.razor b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoCaptions.razor index 6e47177d..b194342c 100644 --- a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoCaptions.razor +++ b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoCaptions.razor @@ -1,4 +1,5 @@ @page "/Creator/VideoCaptions/VideoInfo{VideoInfoId:long}/YouTube/{YouTubeVideoId}" +@implements IDisposable @using FairPlayCombined.Models.FairPlaySocial.VideoCaptions @using FairPlayCombined.Services.Common @@ -73,4 +74,9 @@ this.cancellationTokenSource.Token ); } + + void IDisposable.Dispose() + { + this.cancellationTokenSource.Dispose(); + } } diff --git a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoChapters.razor b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoChapters.razor index 231046c3..8feb394c 100644 --- a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoChapters.razor +++ b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoChapters.razor @@ -1,4 +1,6 @@ @page "/Creator/VideoChapters/{VideoInfoId:long}" +@implements IDisposable + @using FairPlayCombined.Common @using FairPlayCombined.Interfaces @using FairPlayCombined.Models.FairPlayTube.VideoInfo @@ -85,4 +87,9 @@ this.YouTubeChapters = result!.choices![0]!.message!.content!; } } + + void IDisposable.Dispose() + { + this.cancellationTokenSource.Dispose(); + } } diff --git a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoDailyPosts.razor b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoDailyPosts.razor index c01aeda8..257db34f 100644 --- a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoDailyPosts.razor +++ b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoDailyPosts.razor @@ -1,4 +1,6 @@ @page "/Creator/VideoDailyPosts/{VideoInfoId:long}" +@implements IDisposable + @using FairPlayCombined.Common @using FairPlayCombined.Interfaces @using FairPlayCombined.Models.FairPlayTube.VideoInfo @@ -85,4 +87,9 @@ this.IsBusy = false; StateHasChanged(); } + + void IDisposable.Dispose() + { + this.cancellationTokenSource.Dispose(); + } } diff --git a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoDigitalMarketing.razor b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoDigitalMarketing.razor index b169b975..a2f30853 100644 --- a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoDigitalMarketing.razor +++ b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoDigitalMarketing.razor @@ -1,4 +1,6 @@ @page "/Creator/VideoDigitalMarketing/{VideoInfoId:long}" +@implements IDisposable + @using FairPlayCombined.Common @using FairPlayCombined.Interfaces @using FairPlayCombined.Models.FairPlayTube.VideoInfo @@ -98,4 +100,9 @@ cancellationToken: this.cancellationTokenSource.Token); } } + + void IDisposable.Dispose() + { + this.cancellationTokenSource.Dispose(); + } } diff --git a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoInfographic.razor b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoInfographic.razor index 939770ad..01d15586 100644 --- a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoInfographic.razor +++ b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoInfographic.razor @@ -1,4 +1,6 @@ @page "/Creator/VideoInfographic/{VideoInfoId:long}" +@implements IDisposable + @using FairPlayCombined.Common @using FairPlayCombined.Interfaces @using FairPlayCombined.Models.FairPlayTube.VideoInfo @@ -70,4 +72,9 @@ this.IsBusy = false; StateHasChanged(); } + + void IDisposable.Dispose() + { + this.cancellationTokenSource.Dispose(); + } } diff --git a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoLinkedInArticle.razor b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoLinkedInArticle.razor index c352b156..851318ec 100644 --- a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoLinkedInArticle.razor +++ b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoLinkedInArticle.razor @@ -1,4 +1,6 @@ @page "/Creator/VideoLinkedInArticle/{VideoInfoId:long}" +@implements IDisposable + @using FairPlayCombined.Common @using FairPlayCombined.Interfaces @using FairPlayCombined.Models.FairPlayTube.VideoInfo @@ -69,4 +71,9 @@ this.IsBusy = false; StateHasChanged(); } + + void IDisposable.Dispose() + { + this.cancellationTokenSource.Dispose(); + } } diff --git a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoPassiveIncome.razor b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoPassiveIncome.razor index 8dba3a21..3bbbb771 100644 --- a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoPassiveIncome.razor +++ b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/VideoPassiveIncome.razor @@ -1,4 +1,6 @@ @page "/Creator/VideoPassiveIncome/{VideoInfoId:long}" +@implements IDisposable + @using FairPlayCombined.Common @using FairPlayCombined.Interfaces @using FairPlayCombined.Models.FairPlayTube.VideoInfo @@ -61,4 +63,9 @@ this.IsBusy = false; StateHasChanged(); } + + void IDisposable.Dispose() + { + this.cancellationTokenSource.Dispose(); + } } diff --git a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/YouTubeThumbnail.razor b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/YouTubeThumbnail.razor index 9287b038..492574b2 100644 --- a/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/YouTubeThumbnail.razor +++ b/src/FairPlayCombinedSln/FairPlayTube/Components/Pages/Creator/YouTubeThumbnail.razor @@ -1,4 +1,6 @@ @page "/Creator/YouTubeThumbnail/{VideoInfoId:long}" +@implements IDisposable + @using FairPlayCombined.Common @using FairPlayCombined.Interfaces @using FairPlayCombined.Models.FairPlayTube.VideoInfo @@ -73,4 +75,9 @@ this.IsBusy = false; StateHasChanged(); } + + void IDisposable.Dispose() + { + this.cancellationTokenSource.Dispose(); + } }