0

我想在$Settings中保存不同的参数,因为它是全局的,我想使用这些值,即使当会话被传输时也就是它变为空时。

我目前正在这样做,

var updatedContext = new Context(ctx)
{
[ContextParameterName] = ContextVals
}; 
FireChangeContext(new ContextEventArgs(updatedContext));

但是通过这个我只能将值保存在 $Context 中。我希望将值存储在$Settings中。

期待提供帮助。

4

1 回答 1

0

您可以通过FireRequestAction实现此目的

FireRequestAction(new RequestActionEventArgs(<<HostedControl>>, <<ActionName>>, <<Your Data>>);

Hosted Control 将是Global Manager, Action 将是SaveSetting以及您想要存储在 Settings 中的数据。

于 2018-10-17T06:26:06.757 回答