示例#1
0
        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()
                );
        }
示例#2
0
 public ServiceClient(SuperSlowRemoteServiceWrittenInPHP service)
 {
     _service = service;
 }