AssistantPage

StockSharp.Web.Common

Whether a page carries the site assistant, and what it is there for. The page says so itself, so no page id is written into the code: a content manager turns it on where it is wanted.

方法

GetKind
public static AiPageKinds? GetKind(AiAssistantModes mode, DynamicPageHandlers handler, bool isEnabled, bool onAllPages)
result = AssistantPage.GetKind(mode, handler, isEnabled, onAllPages)

The kind the assistant works in on a page, or nothing when the page carries none.

mode
What the page asks the assistant to do.
handler
How the page is rendered, which decides what there is to answer from.
isEnabled
Whether the assistant answers at all.
onAllPages
Whether every content page carries it.

返回值: The kind to open the widget with, or .

GetKind
public static AiPageKinds? GetKind(DynamicPage page, SiteSettings settings)
result = AssistantPage.GetKind(page, settings)

The kind the assistant works in on this page, or nothing when the page carries none.

page
The page being rendered.
settings
The site settings.

返回值: The kind to open the widget with, or .