dotnet refactor apis to conform to the lang standard