fast-dinner-32080
03/12/2020, 12:37 AMSize = args.VmTemplate.Apply(x => x.Disks[0].Size ) + args.SrvExtendSize
as well as
Size = args.VmTemplate.Apply(x => x.Disks[0].Size ) + args.SrvExtendSize.ToOutput()
So I must be missing somethingstraight-flower-13757
03/12/2020, 1:29 AMOutput.Tuple<?, int>(args.VmTemplate, args.SrvExtendSize).Apply(t => {
var (template, extendedSize) = t;
return template.Disks[0].Size + args.SrvExtendSize;
});
that will take both inputs and make sure that both are counted in/awaited if needed before converting them into a single output.fast-dinner-32080
03/12/2020, 1:51 AMSize = Output.Tuple(args.VmTemplate, args.SrvExtendSize).Apply(t => {
var (template, extendedSize) = t;
return template.Disks[0].Size + extendedSize;
}),
It just seems like a lot of work to just add two ints.straight-flower-13757
03/12/2020, 1:55 AM