Skip to content

Basic example of consuming a code flow#8398

Draft
tmeschter wants to merge 1 commit intodotnet:mainfrom
tmeschter:220815-DataflowExample
Draft

Basic example of consuming a code flow#8398
tmeschter wants to merge 1 commit intodotnet:mainfrom
tmeschter:220815-DataflowExample

Conversation

@tmeschter
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown

@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
Copy Markdown
Contributor

Tests are failing because of this unit-test ImportsMustMatchExportScope

@ocallesp
Copy link
Copy Markdown
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
Copy Markdown
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.

4 participants