protected async static Tasks.Task InstantiateAsync(AsyncDynamicCommand instance) { var commandID = new CommandID(Package.CommandSet, Id); var command = new OleMenuCommand(instance.ExecuteHandler, instance.ChangeHandler, instance.QueryStatusHandler, commandID); Instance = instance; await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync(); Package?.CommandService?.AddCommand(command); }
protected virtual void OnDisposeUnmanaged(AsyncDynamicCommand command) { }