问题描述
如何强制对其进行更新?似乎在加载文件时不会自动更新.我的情况就是这样
How to force it to update? It seems that it does not get automatically updated when loading a file. My case is something like this
_designer = new WorkflowDesigner();
//设置验证服务
_validationService =新的ValidationErrorService();
_designer.Context.Services.Publish< IValidationErrorService>(_ validationService);
_designer.Load(_file);
bool b = _validationService.IsValid;
_designer = new WorkflowDesigner();
//set up validation service
_validationService = new ValidationErrorService();
_designer.Context.Services.Publish<IValidationErrorService>(_validationService);
_designer.Load(_file);
bool b = _validationService.IsValid;
变量b为false(即使加载的工作流程有效).之后仅一会儿IsValid更改为true(我不知道是什么触发了它).如何立即获得validationService的验证?
the variable b is false (eventhough the loaded workflow is valid). Only a while after that IsValid gets changed to true (I don't know what triggers it). How can I get the validationService validated instantaneously?
推荐答案
这篇关于如何强制使IValidationErrorService更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!