/// <summary> /// Set the return value for the <see cref="CfrResourceBundleHandler.GetDataResource"/> render process callback. /// Calling SetReturnValue() more then once per callback or from different event handlers will cause an exception to be thrown. /// </summary> public void SetReturnValue(bool returnValue) { if(returnValueSet) { throw new CfxException("The return value has already been set"); } var call = new CfxGetDataResourceSetReturnValueRenderProcessCall(); call.eventArgsId = eventArgsId; call.value = returnValue; call.RequestExecution(CfxRemoteCallContext.CurrentContext.connection); returnValueSet = true; }