コード例 #1
0
        public Response Handle(Request request)
        {
            var           typedRequest = (GetRepoRequest)request;
            IReposService reposService = ObjectFactory.GetInstance <IReposService>();
            var           repoResult   = reposService.Get(typedRequest.User, typedRequest.Repo);

            return(new RepoResponse(repoResult));
        }
コード例 #2
0
        public Repo GetRepo(string user, string repo)
        {
            IReposService reposService = ObjectFactory.GetInstance <IReposService>();

            return(reposService.Get(user, repo));
        }