-
Notifications
You must be signed in to change notification settings - Fork 23
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
base: feat/fdc3-2_0-conformance
Are you sure you want to change the base?
Feature/raise intent for context #809
Conversation
/// </summary> | ||
public static bool DoesListenForIntent(this Fdc3App app, string intentName) | ||
{ | ||
if (app?.Interop?.Intents?.ListensFor == null) { return false; } |
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.
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( |
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.
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> |
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.
please fix the xml comments as well
|
||
namespace MorganStanley.ComposeUI.Fdc3.DesktopAgent.Infrastructure.Internal; | ||
|
||
internal class IntentResolver |
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.
nice! :)
/// </summary> | ||
public static bool DoesAcceptContextType(this Fdc3App app, string contextType) | ||
{ | ||
if (app?.Interop?.Intents?.ListensFor == null) { return false; } |
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.
Same here for the brackets
No description provided.