private void nativeOperateHandler(UInt32 invokeId, IntPtr parameter, int err, int type, bool success) { GCHandle handle = GCHandle.FromIntPtr(parameter); Tuple <ControlActionHandler, object> callbackInfo = handle.Target as Tuple <ControlActionHandler, object>; ControlActionHandler handler = callbackInfo.Item1; object handlerParameter = callbackInfo.Item2; handle.Free(); IedClientError clientError = (IedClientError)err; handler(invokeId, handlerParameter, clientError, (ControlActionType)type, success); }
static void HandleReadObjectHandler(uint invokeId, object parameter, IedClientError err, MmsValue value) { }