-
Notifications
You must be signed in to change notification settings - Fork 30
feat(fdc3) - Modified Fdc3 native client to allow arguments from ctor; improved documentation, added client factory to allow shell specific client creation #1253
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
Open
lilla28
wants to merge
5
commits into
morganstanley:main
Choose a base branch
from
lilla28:feat/fdc3-native-client-refactor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b9f4198
feat(fdc3) - Modified Fdc3 native client to allow argumetns from ctor;
lilla28 2674818
fix(fdc3-client) - Fix tests
lilla28 7485695
fix(fdc3-client) - trigger channel joined for UI changes
lilla28 2a86cf4
feat(fdc3) - Update documentation
lilla28 28e519c
fix(fdc3-client) - PR comments
lilla28 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
...Client/src/MorganStanley.ComposeUI.Fdc3.DesktopAgent.Client/IDesktopAgentClientFactory.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| /* | ||
| * Morgan Stanley makes this available to you under the Apache License, | ||
| * Version 2.0 (the "License"). You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0. | ||
| * | ||
| * See the NOTICE file distributed with this work for additional information | ||
| * regarding copyright ownership. Unless required by applicable law or agreed | ||
| * to in writing, software distributed under the License is distributed on an | ||
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
| * or implied. See the License for the specific language governing permissions | ||
| * and limitations under the License. | ||
| */ | ||
|
|
||
| using Finos.Fdc3; | ||
| using MorganStanley.ComposeUI.Fdc3.DesktopAgent.Shared; | ||
|
|
||
| namespace MorganStanley.ComposeUI.Fdc3.DesktopAgent.Client; | ||
|
|
||
| /// <summary> | ||
| /// Shell specific factory which will be used by the Fdc3DesktopAgent to retrieve the IDesktopAgent implementation that will be used for Fdc3 integration. This is needed to abstract away how the DesktopAgentClient can be resolved. | ||
| /// </summary> | ||
| public interface IDesktopAgentClientFactory | ||
| { | ||
| /// <summary> | ||
| /// Returns the IDesktopAgent implementation that will be used by the Fdc3DesktopAgent for Fdc3 integration. The implementation of this factory should handle the resolution of the IDesktopAgent, whether it's through a service locator, dependency injection, or any other method. This allows the DesktopAgentClient to remain decoupled from the specifics of how the IDesktopAgent is provided, enabling greater flexibility and testability. | ||
| /// </summary> | ||
| /// <param name="identifier">Unique identifier of the module</param> | ||
| /// <param name="onReady">Callback which signals that the desktop agent client is ready for the module.</param> | ||
| /// <returns></returns> | ||
| public Task GetDesktopAgentAsync(string identifier, Action<IDesktopAgent> onReady); | ||
|
|
||
| /// <summary> | ||
| /// Registers the Fdc3StartupProperties for in-process apps, which can be used to provide necessary information about the app to the DesktopAgentClient for proper Fdc3 integration. | ||
| /// This helps to identify the different native modules and provides ability to create the DesktopAgent client which can be used for in process apps to collaborate in the FDC3 ecosystem. | ||
| /// The implementation of this method should handle the storage and management of the Fdc3StartupProperties for in-process apps, ensuring that the DesktopAgentClient can access this information when needed for Fdc3 operations. | ||
| /// This is particularly important for scenarios where multiple in-process apps are running and need to be distinguished from each other for proper Fdc3 functionality. | ||
| /// </summary> | ||
| /// <param name="fdc3Properties"></param> | ||
| public Task RegisterInProcessAppPropertiesAsync(Fdc3StartupProperties fdc3Properties); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
string? initialUserChannelId = null,
string? initialOpenAppContextId = null,
Action? onReady = null
are missing from XML comment