示例#1
0
        public JobEntry CreateJob(String clientId, Guid requestId, String srcImage, Uri srcImageUri, System.Drawing.Size srcSize, Byte tileSize, Byte slices)
        {
            _tableClient.CreateTableIfNotExist("jobs");
            if (_tableClient.DoesTableExist("jobs"))
            {
                var job = new JobEntry(clientId, requestId, srcImage, srcImageUri, srcSize.Width, srcSize.Height, tileSize, slices);
                Context.AddObject("jobs", job);
                Context.SaveChanges();

                return(job);
            }
            else
            {
                return(null);
            }
        }