scalar api c#