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