-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch Dispatcher command handler to use ActionContext (#145)
- Command handlers get an ActionContext (instead of just the CommandHandlerContext) - Remove special `executDispatcherCommand` and use the standard helper from the SDK. - Switch most dispatcher command handlers to use `ActionIO`. Remove `RequestIO` API that is no longer used. - Add `block` append mode for `appendDisplay`
- Loading branch information
Showing
35 changed files
with
740 additions
and
536 deletions.
There are no files selected for viewing
This file contains 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 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,24 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
export type DisplayType = "html" | "text"; | ||
|
||
export type DynamicDisplay = { | ||
content: DisplayContent; | ||
nextRefreshMs: number; // in milliseconds, -1 means no more refresh. | ||
}; | ||
|
||
export type DisplayContent = | ||
| string | ||
| { | ||
type: DisplayType; | ||
content: string; | ||
}; | ||
|
||
export type DisplayAppendMode = "inline" | "block" | "temporary"; | ||
|
||
export interface ActionIO { | ||
readonly type: DisplayType; | ||
setDisplay(content: DisplayContent): void; | ||
appendDisplay(content: DisplayContent, mode?: DisplayAppendMode): void; | ||
} |
This file contains 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 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 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 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 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 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 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 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.