public void UpdateLogic() { AnnotationUpdateUtility.UpdateInvalidatedLayers(_layers); Storage = RuntimeStorage.FromCouchDb("prefab_single_layer"); var args = new ProcessAnnotationArgs(Storage, GetPtypes()); if (File.Exists(_singleLayerName)) { _interpreter = LoadSingleLayer(_singleLayerName); _interpreter.ProcessAnnotations(args); } }
public void ProcessAnnotations(ProcessAnnotationArgs args) { if (_processAnnotationsFunc != null) { try { var runtime_storage = new PythonRuntimeStorageWrapper(args.RuntimeStorage); _processAnnotationsFunc(runtime_storage); } catch (Exception e) { throw PythonScriptHost.Instance.GetFormattedException(e, Name); } } }