示例#1
0
        /// <summary>
        /// Finds the run detail.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <returns></returns>
        /// <remarks></remarks>
        public DiagnosticsRunDetailItem FindRunDetail(string id)
        {
            var map = new DiagnosticsRunDetailItemMapper();
            var res = DiagnosticsRepositoryAgentFactory
                      .CreateDiagnosticsRunDetailRepositoryAgent()
                      .SelectById(id);

            return(res == null ? null : map.MapFromServiceToBusiness(res));
        }
示例#2
0
 /// <summary>
 /// Gets the diagnostics details for run.
 /// </summary>
 /// <param name="id">The id.</param>
 /// <returns></returns>
 /// <remarks></remarks>
 public DiagnosticsRunDetailItem[] GetDiagnosticsDetailsForRun(string id)
 {
     using (var scp = new TransactionScope())
     {
         var res = DiagnosticsRepositoryAgentFactory
                   .CreateDiagnosticsRunDetailRepositoryAgent()
                   .SelectByRunId(id);
         scp.Complete();
         var map = new DiagnosticsRunDetailItemMapper();
         return(map.MapFromServiceToBusiness(res));
     }
 }