Ejemplo n.º 1
0
    void OnCallClean(CleanupMessage pMessage)
    {
        if (pMessage.Sender.GetComponent <TurbineObject>() == this.GetComponent <TurbineObject>())
        {
            Dispatcher <CleanupMessage> .Unsubscribe(OnCallClean);

            OnCallHelp();
        }
    }
Ejemplo n.º 2
0
        public async Task StoreMessage(DiscordMessage message, ulong ttl)
        {
            logger.LogInformation($"Saving message: {message} with ttl {ttl}");

            var cleanupMessage = new CleanupMessage();

            cleanupMessage.MessageCleanupTableId = message.Id.ToString();
            cleanupMessage.ChannelId             = message.ChannelId;
            cleanupMessage.InsertedAt            = DateTime.Now;
            cleanupMessage.LastEdited            = DateTime.Now;
            cleanupMessage.TTL = ttl;

            await dbContext.SaveAsync(cleanupMessage);

            logger.LogInformation($"Saved message with ID {message.Id}");
        }
Ejemplo n.º 3
0
 private void CleanViewModel(CleanupMessage obj)
 {
     base.Cleanup();
 }
 void SendCleaners(CleanupMessage rm)
 {
     GetFreeAgent().Send(rm.Sender.GetComponent <TurbineObject> ());
 }