Example #1
0
 private async Task ExportDailySRReport()
 {
     using (var client = new CSMSRServiceClient())
     {
         Task <ExportSRTaskResponse> t      = client.DailySRReportAsync();
         ExportSRTaskResponse        result = await t;
     }
 }
Example #2
0
 public void SaveAuditLogSRReport(ExportSRTaskResponse taskResponse)
 {
     if (taskResponse != null)
     {
         var _auditLog = new AuditLogEntity();
         _auditLog.Module    = Constants.Module.Batch;
         _auditLog.Action    = taskResponse.TaskAction;
         _auditLog.IpAddress = ApplicationHelpers.GetClientIP();
         if (taskResponse.StatusResponse.Status == Constants.StatusResponse.Success)
         {
             _auditLog.Status = LogStatus.Success;
         }
         else
         {
             _auditLog.Status = LogStatus.Fail;
         }
         _auditLog.Detail       = taskResponse.ToString();
         _auditLog.CreateUserId = null;
         _auditLog.CreatedDate  = taskResponse.SchedDateTime;
         AppLog.AuditLog(_auditLog);
     }
 }