terminal/scratch/ScratchIslandApp/SampleApp
Mike Griese 6e70c4ae07
Switch Connections to use ValueSets to initialize them (#10184)
#### ⚠️ targets #10051 

## Summary of the Pull Request

This PR does one big, primary thing. It removes all the constructors from any TerminalConnections, and changes them to use an `Initialize` method that accepts a `ValueSet` of properties.

Why?

For the upcoming window/content process work, we'll need the content process to be able to initialize the connection _in the content process_. However, the window process will be the one that knows what type of connection to make. Enter `ConnectionInformation`. This class will let us specify the class name of the type we want to create, and a set of settings to use when initializing that connection.

**IMPORTANT**: As a part of this, the constructor for a connection must have 0 arguments. `RoActivateInstance` lets you just conjure a WinRT type just by class name, but that class must have a 0 arg ctor. Hence the need for `Initialize`, to actually pass the settings.

We're using a `ValueSet` here because it's basically a json blob, with more steps. In the future, when extension authors want to have custom connections, we can always deserialize the json into a `ValueSet`, pass it to their connection's `Initialize`, and let then get what they need out of it.

## References
* Tear-out: #1256
* Megathread: #5000
* Project: https://github.com/microsoft/terminal/projects/5

## PR Checklist
* [x] Closes https://github.com/microsoft/terminal/projects/5#card-50760298
* [x] I work here
* [n/a] Tests added/passed
* [n/a] Requires documentation to be updated

## Detailed Description of the Pull Request / Additional comments

`ConnectionInformation` was included as a part of this PR, to demonstrate how this will eventually be used. `ConnectionInformation` is not _currently_ used.

## Validation Steps Performed

It still builds and runs.
2021-07-20 15:02:17 +00:00
..
dll Switch Connections to use ValueSets to initialize them (#10184) 2021-07-20 15:02:17 +00:00
Resources/en-US Add a Scratch.sln for prototyping (#10067) 2021-06-10 12:56:47 -05:00
App.base.h Replicate winrt::make<> changes in ScratchIslandApp SampleAppLib (#10494) 2021-06-23 03:21:07 +00:00
App.cpp Add a Scratch.sln for prototyping (#10067) 2021-06-10 12:56:47 -05:00
App.h Add a Scratch.sln for prototyping (#10067) 2021-06-10 12:56:47 -05:00
App.idl Add a Scratch.sln for prototyping (#10067) 2021-06-10 12:56:47 -05:00
App.xaml Add a Scratch.sln for prototyping (#10067) 2021-06-10 12:56:47 -05:00
init.cpp Add a Scratch.sln for prototyping (#10067) 2021-06-10 12:56:47 -05:00
MyPage.cpp Switch Connections to use ValueSets to initialize them (#10184) 2021-07-20 15:02:17 +00:00
MyPage.h Add a Scratch.sln for prototyping (#10067) 2021-06-10 12:56:47 -05:00
MyPage.idl Add a Scratch.sln for prototyping (#10067) 2021-06-10 12:56:47 -05:00
MyPage.xaml Switch Connections to use ValueSets to initialize them (#10184) 2021-07-20 15:02:17 +00:00
MySettings.cpp Add a Scratch.sln for prototyping (#10067) 2021-06-10 12:56:47 -05:00
MySettings.h Switch Connections to use ValueSets to initialize them (#10184) 2021-07-20 15:02:17 +00:00
MySettings.idl Add a Scratch.sln for prototyping (#10067) 2021-06-10 12:56:47 -05:00
packages.config Update Xaml Toolkit App Host to 6.1.3 (#10640) 2021-07-12 22:58:02 +00:00
pch.cpp Add a Scratch.sln for prototyping (#10067) 2021-06-10 12:56:47 -05:00
pch.h Add a Scratch.sln for prototyping (#10067) 2021-06-10 12:56:47 -05:00
SampleAppLib.vcxproj Update Xaml Toolkit App Host to 6.1.3 (#10640) 2021-07-12 22:58:02 +00:00
SampleAppLogic.cpp Add a Scratch.sln for prototyping (#10067) 2021-06-10 12:56:47 -05:00
SampleAppLogic.h Add a Scratch.sln for prototyping (#10067) 2021-06-10 12:56:47 -05:00
SampleAppLogic.idl Add a Scratch.sln for prototyping (#10067) 2021-06-10 12:56:47 -05:00