-
-
Notifications
You must be signed in to change notification settings - Fork 41
LT-21512: Move GetContentControlParameters to Pub/Sub #640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Cherry-pick from the PubSub branch to the main branch using the following command: git cherry-pick --no-commit b82f926 After the cherry-pick additional edits were made to resolve conflicts and standardize on the use of: using static SIL.FieldWorks.Common.FwUtils.FwUtils;
Src/xWorks/xWorksTests/DictionaryConfigurationMigrators/StubContentControlProvider.cs
Show resolved
Hide resolved
mark-sil
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mark-sil made 1 comment.
Reviewable status: 0 of 4 files reviewed, 1 unresolved discussion (waiting on @papeh).
Src/xWorks/xWorksTests/DictionaryConfigurationMigrators/StubContentControlProvider.cs
Show resolved
Hide resolved
| public void Dispose(bool disposeCalled) | ||
| { | ||
| System.Diagnostics.Debug.WriteLineIf(!disposeCalled, "****** Missing Dispose() call for " + GetType().Name + ". ****** "); | ||
| Subscriber.Unsubscribe(EventConstants.GetContentControlParameters, GetContentControlParameters); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On second thought, unsubscribing during garbage collection may not be a good idea.
| Subscriber.Unsubscribe(EventConstants.ReloadAreaTools, ReloadAreaTools); | ||
| Subscriber.Unsubscribe(EventConstants.GetContentControlParameters, GetContentControlParameters); | ||
|
|
||
| // Dispose managed resources here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for example:
Cherry-pick from the PubSub branch to the main branch using the following command:
git cherry-pick --no-commit b82f926
After the cherry-pick additional edits were made to resolve conflicts and standardize on the use of:
using static SIL.FieldWorks.Common.FwUtils.FwUtils;
This change is