Skip to content

Commit

Permalink
adding missing implementations of IDisposable
Browse files Browse the repository at this point in the history
  • Loading branch information
efonsecab committed Apr 19, 2024
1 parent 374e01a commit 92948cf
Show file tree
Hide file tree
Showing 12 changed files with 81 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@attribute [Route($"{Constants.Routes.FairPlayTubeRoutes.CreatorRoutes.MyVideoViewers}/{{VideoId}}")]
@implements IDisposable

@using FairPlayCombined.Common
@using FairPlayCombined.Interfaces
Expand Down Expand Up @@ -80,4 +81,9 @@
};
this.IsBusy = false;
}

void IDisposable.Dispose()
{
this.cancellationTokenSource.Dispose();
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@attribute [Route(Constants.Routes.FairPlayTubeRoutes.CreatorRoutes.MyVideos)]
@implements IDisposable

@using FairPlayCombined.Common
@using FairPlayCombined.Interfaces
Expand Down Expand Up @@ -150,4 +151,9 @@
{
this.navigationManager.NavigateTo($"/Creator/VideoChapters/{videoInfoModel.VideoInfoId}");
}

void IDisposable.Dispose()
{
this.cancellationTokenSource.Dispose();
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@page "/Creator/NewVideoRecommendation"
@implements IDisposable

@using FairPlayCombined.Common
@using FairPlayCombined.Interfaces
@using FairPlayCombined.Models.FairPlayTube.VideoInfo
Expand Down Expand Up @@ -93,4 +95,9 @@
this.NewVideoRecommendationIdea = result!.choices![0]!.message!.content!;
}
}

void IDisposable.Dispose()
{
this.cancellationTokenSource.Dispose();
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@page "/Creator/NewVideoScript"
@implements IDisposable

@using FairPlayCombined.Common
@using FairPlayCombined.Interfaces
@using FairPlayCombined.Models.FairPlayTube.NewVideoScript
Expand Down Expand Up @@ -110,4 +112,9 @@
this.IsBusy = false;
StateHasChanged();
}

void IDisposable.Dispose()
{
this.cancellationTokenSource.Dispose();
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@page "/Creator/VideoCaptions/VideoInfo{VideoInfoId:long}/YouTube/{YouTubeVideoId}"
@implements IDisposable

@using FairPlayCombined.Models.FairPlaySocial.VideoCaptions
@using FairPlayCombined.Services.Common
Expand Down Expand Up @@ -73,4 +74,9 @@
this.cancellationTokenSource.Token
);
}

void IDisposable.Dispose()
{
this.cancellationTokenSource.Dispose();
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@page "/Creator/VideoChapters/{VideoInfoId:long}"
@implements IDisposable

@using FairPlayCombined.Common
@using FairPlayCombined.Interfaces
@using FairPlayCombined.Models.FairPlayTube.VideoInfo
Expand Down Expand Up @@ -85,4 +87,9 @@
this.YouTubeChapters = result!.choices![0]!.message!.content!;
}
}

void IDisposable.Dispose()
{
this.cancellationTokenSource.Dispose();
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@page "/Creator/VideoDailyPosts/{VideoInfoId:long}"
@implements IDisposable

@using FairPlayCombined.Common
@using FairPlayCombined.Interfaces
@using FairPlayCombined.Models.FairPlayTube.VideoInfo
Expand Down Expand Up @@ -85,4 +87,9 @@
this.IsBusy = false;
StateHasChanged();
}

void IDisposable.Dispose()
{
this.cancellationTokenSource.Dispose();
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@page "/Creator/VideoDigitalMarketing/{VideoInfoId:long}"
@implements IDisposable

@using FairPlayCombined.Common
@using FairPlayCombined.Interfaces
@using FairPlayCombined.Models.FairPlayTube.VideoInfo
Expand Down Expand Up @@ -98,4 +100,9 @@
cancellationToken: this.cancellationTokenSource.Token);
}
}

void IDisposable.Dispose()
{
this.cancellationTokenSource.Dispose();
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@page "/Creator/VideoInfographic/{VideoInfoId:long}"
@implements IDisposable

@using FairPlayCombined.Common
@using FairPlayCombined.Interfaces
@using FairPlayCombined.Models.FairPlayTube.VideoInfo
Expand Down Expand Up @@ -70,4 +72,9 @@
this.IsBusy = false;
StateHasChanged();
}

void IDisposable.Dispose()
{
this.cancellationTokenSource.Dispose();
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@page "/Creator/VideoLinkedInArticle/{VideoInfoId:long}"
@implements IDisposable

@using FairPlayCombined.Common
@using FairPlayCombined.Interfaces
@using FairPlayCombined.Models.FairPlayTube.VideoInfo
Expand Down Expand Up @@ -69,4 +71,9 @@
this.IsBusy = false;
StateHasChanged();
}

void IDisposable.Dispose()
{
this.cancellationTokenSource.Dispose();
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@page "/Creator/VideoPassiveIncome/{VideoInfoId:long}"
@implements IDisposable

@using FairPlayCombined.Common
@using FairPlayCombined.Interfaces
@using FairPlayCombined.Models.FairPlayTube.VideoInfo
Expand Down Expand Up @@ -61,4 +63,9 @@
this.IsBusy = false;
StateHasChanged();
}

void IDisposable.Dispose()
{
this.cancellationTokenSource.Dispose();
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@page "/Creator/YouTubeThumbnail/{VideoInfoId:long}"
@implements IDisposable

@using FairPlayCombined.Common
@using FairPlayCombined.Interfaces
@using FairPlayCombined.Models.FairPlayTube.VideoInfo
Expand Down Expand Up @@ -73,4 +75,9 @@
this.IsBusy = false;
StateHasChanged();
}

void IDisposable.Dispose()
{
this.cancellationTokenSource.Dispose();
}
}

0 comments on commit 92948cf

Please sign in to comment.