public static void PluginStart(CommandStart command) { Task.Run(() => { if (General.IsCadManager()) return; try { var pg = new C_PluginStatisticTableAdapter(); pg.Insert("AutoCAD", command.Plugin, command.CommandName, FileVersionInfo.GetVersionInfo(command.Assembly.Location).ProductVersion, command.Doc, Environment.UserName, DateTime.Now); } catch (Exception ex) { Logger.Log.Error(ex, "PluginStatisticsHelper.PluginStart"); } }); }
public static void PluginStart(string command) { var com = new CommandStart(command, Assembly.GetCallingAssembly()); PluginStart(com); }