IAsyncCloseWindow

StockSharp.Xaml

A window that has work to await before it closes - settings to write, say - so that Close alone does not close it at once.

方法

CloseAsync
public Task<bool> CloseAsync(CancellationToken cancellationToken)
result = iAsyncCloseWindow.CloseAsync(cancellationToken)

Does what the window has to do before it goes, and closes it.

cancellationToken
CancellationToken

返回值: when the window is closing, when its user turned the close down.