Either a BOT for Winforms, WPF, Android or whataver
First, when the bot is loading (so when OnLoad event gets fired) it must know if he already exist (in database) or if it must request a new creation.
This will be done by calling a T-SQL Stored Procedure we will create for
This will check, based on the OS and Name of the computer or device where its been deployed (Server.ID or Device.ID for physical devices),
if NOT exist any bot.instance created, then
creates one, while there will be no more than MaxBotInstances for this server
if exists one (order by LastOperationDate asc (older first) where Active = true, and at least 12 hours of inactivity has been passed, cause a bot cannot be more than 12 hourts with inactivity.. more on this later eg. if only one url to go for, then at least 6 hours must be passed between reloads, according to youtube tests)
RETURNS
Bot.Instance.ID
Deja una respuesta