How to a create a grid of extruded circles in c#

Hi there,

I am trying to create circles for each point on the grid I have created in c#, I have made two c# components for the extursion of the circles and another one for the grid of points. Is there a way to combine these two into one component to have an extruded grid of circles according to the points of the grid and how could I add the attractivity points reffering to the curve in rhino for this grid? Many thanks!grid of circles.gh (13.2 KB)
grid of cricles 1.3dm (29.6 KB)

See attached:

GridExtrusions_VS_DistToCrv_V1.gh (123.5 KB)

Recycle V1: V1A rather makes a lot more sense (pull options):

GridExtrusions_VS_DistToCrv_V1A.gh (128.7 KB)