Skip to content
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

Basic example of consuming a code flow #8398

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tmeschter
Copy link
Contributor

@tmeschter tmeschter commented Aug 15, 2022

Create a basic, real-world example of how to hook up to a data flow for launch settings and use it to respond to changes.

Microsoft Reviewers: Open in CodeFlow

Create a basic, real-world example of how to hook up to a data flow for launch settings and use it to respond to changes.
// OnLaunchSettingsChangesAsync method, specifying the UnconfiguredProject as the "context" for the purposes of
// error reporting.
_launchSettingsLink = _launchSettingsProvider.SourceBlock
.LinkToAsyncAction(OnLaunchSettingsChangedAsync, _project);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ILaunchSettingsProvider launchSettingsProvider,
// There are multiple implementations of IProjectPropertiesProvider. The Import attribute here tells MEF to give
// us the specific one named "ProjectFile".
[Import(ContractNames.ProjectPropertyProviders.ProjectFile)] IProjectPropertiesProvider projectProperties)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link

@jacdavis jacdavis left a comment

Choose a reason for hiding this comment

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

:shipit:

@ocallesp
Copy link
Contributor

Tests are failing because of this unit-test ImportsMustMatchExportScope

@ocallesp
Copy link
Contributor

I would nice to see this sample code in the wiki page https://dev.azure.com/devdiv/DevDiv/_wiki/wikis/DevDiv.wiki/28503/Dataflows

@MiYanni
Copy link
Member

MiYanni commented Feb 17, 2023

@tmeschter Howdy. What is the status on this? I'm also a bit confused why this is checked in as source code when I believe it is supposed to be an example. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants