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

Feature/raise intent for context #809

Draft
wants to merge 4 commits into
base: feat/fdc3-2_0-conformance
Choose a base branch
from

Conversation

ZKRobi
Copy link
Contributor

@ZKRobi ZKRobi commented Oct 22, 2024

No description provided.

/// </summary>
public static bool DoesListenForIntent(this Fdc3App app, string intentName)
{
if (app?.Interop?.Intents?.ListensFor == null) { return false; }
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: can you please do the brackets in other lines

}

return result;
}

private async Task<IntentQueryResult> GetAppIntentsFromAppDirectory(
Func<Fdc3App, Dictionary<string, AppIntent>, IEnumerable<KeyValuePair<string, IntentMetadata>>?> selector,
private async Task<IntentQueryResult> GetAppIntentsFromRunningModules(
Copy link
Contributor

Choose a reason for hiding this comment

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

This method is not used anywhere. Do we need it?

@@ -24,13 +25,13 @@ public interface IResolverUICommunicator
/// </summary>
/// <param name="intents"></param>
/// <returns></returns>
public Task<ResolverUIIntentResponse?> SendResolverUIIntentRequest(IEnumerable<string> intents, CancellationToken cancellationToken = default);
public Task<ResolverUIIntentResponse?> SendResolverUIIntentRequest(IEnumerable<string> intents, TimeSpan? timeout = null);

/// <summary>
/// Sends a request for the shell to show a window, aka ResolverUI, with the appropriate AppMetadata that can solve the raised intent.
/// </summary>
/// <param name="appMetadata"></param>
/// <param name="cancellationToken"></param>
Copy link
Contributor

Choose a reason for hiding this comment

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

please fix the xml comments as well


namespace MorganStanley.ComposeUI.Fdc3.DesktopAgent.Infrastructure.Internal;

internal class IntentResolver
Copy link
Contributor

Choose a reason for hiding this comment

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

nice! :)

/// </summary>
public static bool DoesAcceptContextType(this Fdc3App app, string contextType)
{
if (app?.Interop?.Intents?.ListensFor == null) { return false; }
Copy link
Member

Choose a reason for hiding this comment

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

Same here for the brackets

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.

3 participants