예제 #1
0
        public void AddOCRJob(OCRJob job)
        {
            job.PartitionKey = job.EmailAddress;
            job.RowKey = job.ID.ToString();

            TableOperation insertOperation = TableOperation.Insert(job);
            table.Execute(insertOperation);
        }
        public void AddOCRJob(OCRJob job)
        {
            job.PartitionKey = job.EmailAddress;
            job.RowKey       = job.ID.ToString();

            TableOperation insertOperation = TableOperation.Insert(job);

            table.Execute(insertOperation);
        }
        public void UpdateOCRJob(OCRJob job)
        {
            TableOperation insertOperation = TableOperation.Replace(job);

            table.Execute(insertOperation);
        }
예제 #4
0
 private static void CreateJobLogEntry(Guid jobID, string originalFileName, string emailAddress)
 {
     var jobRecord = new OCRJob
     {
         ID = jobID,
         DateTime = DateTime.UtcNow,
         OriginalFileName = originalFileName,
         EmailAddress = emailAddress,
     };
     AzureTables.OCRJobRepository.AddOCRJob(jobRecord);
 }
예제 #5
0
 public void UpdateOCRJob(OCRJob job)
 {
     TableOperation insertOperation = TableOperation.Replace(job);
     table.Execute(insertOperation);
 }