/// <summary> /// Set the return value for the <see cref="CfrResourceBundleHandler.GetLocalizedString"/> 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 CfxGetLocalizedStringSetReturnValueRenderProcessCall(); call.eventArgsId = eventArgsId; call.value = returnValue; call.RequestExecution(CfxRemoteCallContext.CurrentContext.connection); returnValueSet = true; }
/// <summary> /// Set the return value for the <see cref="CfrResourceBundleHandler.GetLocalizedString"/> 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 CfxGetLocalizedStringSetReturnValueRenderProcessCall(); call.eventArgsId = eventArgsId; call.value = returnValue; call.RequestExecution(CfxRemoteCallContext.CurrentContext.connection); returnValueSet = true; }