private static async Task <BaseCodeGenDescriptor> ReGenerateCodeAsync(ConnectedServiceHandlerContext context, Instance instance)
        {
            var codeGenDescriptor = new Dynamics365CodeGenDescriptor(context, instance);
            await codeGenDescriptor.AddGeneratedCodeAsync();

            return(codeGenDescriptor);
        }
        private static async Task <BaseCodeGenDescriptor> GenerateCodeAsync(ConnectedServiceHandlerContext context, Instance instance)
        {
            var codeGenDescriptor = new Dynamics365CodeGenDescriptor(context, instance);

            if (instance.ServiceConfig.AddClientNuGet)
            {
                await codeGenDescriptor.AddNugetPackagesAsync();
            }
            await codeGenDescriptor.AddGeneratedCodeAsync();

            return(codeGenDescriptor);
        }