Free from rebar constraints using C#

Hello, I need your help to understand how should I implement constraints to rebar created via C# code. Until now I created my rebar by CreateFreeForm Method (Document, RebarBarType, Element, IList(IList(Curve)), RebarFreeFormValidationResult). In we can read that rebar created by this method does not have constraints, but there is also a method CreateFreeForm Method (Document, Guid, RebarBarType, Element) which can have contraints according to IRebarUpdateServer. I’m not a profesional programer and I have read a bit about overriding interfaces, but I’m still confused about that how should I do this for this particular case. Can any of you give me a hint? Even to most simple example of that what should be done would be appreciated.