[TransitionHelper] CancellationTokenSource is disposable and needs handling for clean-up
まだ誰も着手していません。
評価
調査の方向性
まず components/TransitionHelper/src/TransitionHelper.Animation.cs を読み、特に _currentAnimationCancellationTokenSource フィールドと、TransitionHelper によるその所有に注目してください。CA1001 を再現するために CommunityToolkit.Labs.WinUI.TransitionHelper.csproj のビルドを実行します。リソースに明確なクリーンアップ戦略があり、警告が解消されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Issue with an inner disposable reference that needs to be cleaned up by the parent class to avoid the C# compiler warning:
D:\a\Labs-Windows\Labs-Windows\components\TransitionHelper\src\TransitionHelper.Animation.cs(30,29): error CA1001: Type 'TransitionHelper' owns disposable field(s) '_currentAnimationCancellationTokenSource' but is not disposable [D:\a\Labs-Windows\Labs-Windows\components\TransitionHelper\src\CommunityToolkit.Labs.WinUI.TransitionHelper.csproj]
For now this is ignored. Not sure how we want to handle this as it is a resourced helper...
Originally posted by @michael-hawker in https://github.com/CommunityToolkit/Labs-Windows/issues/354#issuecomment-1444748087
- 主要言語
- C#
- スター
- 484
- フォーク
- 89
- 平均マージ
- 2日 18時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CommunityToolkit/Labs-Windows のほかの issue
-
bug :bug:
難易度 1/5 1〜3時間 初心者へのやさしさ 80/100
CommunityToolkit/Labs-Windows#815 ·
-
bug :bug:
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
CommunityToolkit/Labs-Windows#816 ·
-
bug :bug:
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
CommunityToolkit/Labs-Windows#814 ·
-
experiment :test_tube:
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
CommunityToolkit/Labs-Windows#812 ·
-
ux :paintbrush:
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
CommunityToolkit/Labs-Windows#808 · コメント 1 件 ·
CommunityToolkit/Labs-Windows の issue をすべて見る
似ている issue
-
bug priority: P2
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
WebullFeeModel charges SPXW options the SPX exchange fee対応中かも @Amadeus-22 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
QuantConnect/Lean#9922 ·
メンテナーはふだん 1 日以内に返信
-
[Docs] README/PRIVACY still name AppCenter although v1.5.6.0+ uses the Microsoft Store Services SDKオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Azure/azure-sdk-tools#17317 ·
メンテナーはふだん 1 日以内に返信