Skip to content

Move component model code to common location for all AbstractPackages#58397

Merged
CyrusNajmabadi merged 9 commits intodotnet:mainfrom
CyrusNajmabadi:shareComponentModel
Dec 18, 2021
Merged

Move component model code to common location for all AbstractPackages#58397
CyrusNajmabadi merged 9 commits intodotnet:mainfrom
CyrusNajmabadi:shareComponentModel

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

No description provided.

{
internal abstract class AbstractPackage : AsyncPackage
{
private IComponentModel _componentModel_doNotAccessDirectly;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💭 Not a huge fan of _doNotAccessDirectly here... but hopefully this can be removed once we can have partial-auto-properties.

…actPackage.cs

Co-authored-by: Sam Harwell <sam@tunnelvisionlabs.com>

protected override async Task InitializeAsync(CancellationToken cancellationToken, IProgress<ServiceProgressData> progress)
{
await JoinableTaskFactory.SwitchToMainThreadAsync(cancellationToken);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this still need to call the base.InitiaizeAsync too?

{
internal abstract class AbstractPackage : AsyncPackage
{
private IComponentModel _componentModel_doNotAccessDirectly;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Want to at least #nullable enable this bit and make the field nullable?

@CyrusNajmabadi CyrusNajmabadi merged commit 785ce8c into dotnet:main Dec 18, 2021
@ghost ghost added this to the Next milestone Dec 18, 2021
@CyrusNajmabadi CyrusNajmabadi deleted the shareComponentModel branch December 18, 2021 16:03
@Cosifne Cosifne modified the milestones: Next, 17.1.P3 Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants