示例#1
0
        public static AcquireData GetAcquireData(this IAnalyzeService service, int projectId)
        {
            var operation = new AsyncServiceOperation <AcquireData>();

            service.GetAcquireData(projectId, operation.OnDone, operation.OnError);

            return(operation.WaitCompletion());
        }
示例#2
0
 public async Task <IHttpActionResult> GetAcquireData([DynamicBody] dynamic param)
 {
     try
     {
         int projectId = (int)param.projectId;
         return(Ok(await _analyzeService.GetAcquireData(projectId)));
     }
     catch (Exception ex)
     {
         _traceManager.TraceError(ex, ex.Message);
         return(InternalServerError(ex));
     }
 }