public Task SendAsync(Interaction interaction, string vmName, VmControlAction action, CancellationToken cancellationToken) { return(_queue.SendMessageAsync( JsonSerializer.Serialize(new Message(interaction.Token, interaction.GuildId, vmName, action, Activity.Current?.Id ?? "")), cancellationToken)); }
private record Message(string FollowupToken, string GuildId, string VmName, VmControlAction Action, string TraceParent);