예제 #1
0
 private static IObservable<UserResponse> GetUser(UserQuery query)
 {
     Console.WriteLine("Got UserQuery({0}), Id = {1}", query.Name, query.Id);
     return _githubBrowser.GetUser("nikodemrafalski")
         .Select(u => new UserResponse(query.Id, new List<User> { u }));
     //return _userService.FindUser(query.Name)
     //    .Select(u => new UserResponse(query.Id, u.ToList()));
 }
예제 #2
0
 private static IObservable<UserResponse> GetUser(UserQuery query)
 {
     Console.WriteLine("Got UserQuery({0}), Id = {1}", query.Name, query.Id);
     return _userService.FindUser(query.Name)
         .Select(u => new UserResponse(query.Id, u.ToList()));
 }