private static void DownloadCompletedCallbackDelegate(IntPtr app, IntPtr version, IntPtr downloadedFile) { IntPtr n_version = VidyoApplicationDownloadCompletedCallbackGetversionCStr(version); IntPtr n_downloadedFile = VidyoApplicationDownloadCompletedCallbackGetdownloadedFileCStr(downloadedFile); if (_mIRegisterUpdaterEventListener != null) { _mIRegisterUpdaterEventListener.DownloadCompletedCallback((string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(n_version), (string)MarshalPtrToUtf8.GetInstance().MarshalNativeToManaged(n_downloadedFile)); } }
private static void DownloadCompletedCallbackDelegate(IntPtr app, IntPtr version, IntPtr downloadedFile){ if(_mIRegisterUpdaterEventListener != null) _mIRegisterUpdaterEventListener.DownloadCompletedCallback(Marshal.PtrToStringAnsi(version), Marshal.PtrToStringAnsi(downloadedFile)); }