private void Execute() { SuperSlowRemoteServiceWrittenInPHP remoteService = new SuperSlowRemoteServiceWrittenInPHP(); ServiceClient client = new ServiceClient(remoteService); var myID = client.GetIDForUser("Phil"); Console.WriteLine( new StringBuilder() .AppendLine($"Data for user ID {myID}:") .AppendLine( client .GetAllRecordProxies() .First(r => r.ID == myID) .Data) .ToString() ); }
public ServiceClient(SuperSlowRemoteServiceWrittenInPHP service) { _service = service; }