Need to make an IO call to register a service - C#