Exemplo n.º 1
0
        private static void RecycleItem(ISession session, ItemUiData item, int amount, CancellationToken cts)
        {
            long uidLong = -1;
            var  uid     = (ulong)uidLong;

            session.AddActionToQueue(async() =>
            {
                await RecycleSpecificItemTask.Execute(session, item.Id, amount, cts);
                return(true);
            }, $"{TranslationEngine.GetDynamicTranslationString("%RECYCLE_ITEM%", "Recycle item")}: {item.Id}x{amount}", uid);
        }