0
웹 API 컨트롤러 내에서 LinqToTwitter 라이브러리를 통해 트위터에 질의를 한 후 코드 실행이 중단되고 웹 API 동작이 응답을 반환하지 못하는 문제가 있습니다. 나는 아마 웹 api와 linqToTwitter 사이에 일종의 충돌이있을 것이라고 생각하지만, 나는 여기서 완전히 우둔합니다. 내 트위터 래퍼 파일이 사용하는 문했다LinqToTwitter 쿼리 후 웹 API가 응답을 반환하지 않습니다.
[HttpPost]
public HttpResponseMessage CreateNewInterview(Model.NewInterview interview)
{
// find twitter Id
var twitterId = new Twitter().RetrieveTwitterId(interview.SubjectTwitterName);// nothing is returned here and nothing executes below
// assign model
var model = new NewInterview
(interview.Title, twitterId, DateTime.Now, interview.PublicQuestions, interview.Category);
// create the new interview
Admin.createInterview(model);
// create response
return Request.CreateResponse(HttpStatusCode.OK);
}
'AuthTool' 클래스를 어떻게 만들었나요? –