/// <summary> /// Used to pass a callback message onto our plug-ins /// </summary> /// <param name="arg"></param> public void Callback(string arg) { // Log it Logger.LogDebugSource($"SolidWorks Callback fired {arg}"); PlugInIntegration.OnCallback(arg); }
/// <summary> /// Called by the SolidWorks domain (AddInIntegration) when a callback is fired /// </summary> /// <param name="name">The parameter passed into the generic callback</param> public void OnCallback(string name) { try { // Let listeners know PlugInIntegration.OnCallback(name); } catch (Exception ex) { Debugger.Break(); // Log it Logger.Log($"OnCallback failed. {ex.GetErrorMessage()}"); } }
/// <summary> /// Used to pass a callback message onto our plug-ins /// </summary> /// <param name="arg"></param> public void Callback(string arg) { PlugInIntegration.OnCallback(arg); }