Example #1
0
 public ICatalogJob Convert(ICatalogJob catalogJobInfo)
 {
     CatalogInfoModel model = new CatalogInfoModel()
     {
         CatalogJobName = catalogJobInfo.CatalogJobName,
         Organization = catalogJobInfo.Organization,
         StartTime = this.StartTime
     };
     return model;
 }
Example #2
0
 public ICatalogJob Convert(ICatalogJob catalogJobInfo)
 {
     throw new NotImplementedException();
 }
Example #3
0
        public void SaveCatalogJob(ICatalogJob service)
        {
            //todo undo the comment
            //var catalogEntity = service as CatalogEntity;
            //if (catalogEntity == null)
            //    throw new ArgumentNullException("CatalogEntity.");

            //IServiceContext context = CatalogFactory.Instance.GetServiceContext();

            //string orignizeName = context.AdminInfo.OrganizationName;
            //string tableName = CatalogEntity.GetCatalogJobTableName(orignizeName);
            //tableName = TableDataAccess.ValidateTableName(tableName);
            //TableDataAccess tableDataAccess = new TableDataAccess(TableClient);
            //CloudTable table = tableDataAccess.CreateIfNotExist(tableName);

            //TableResult tableResult = tableDataAccess.InsertEntity(table, catalogEntity);
            //LogFactory.LogInstance.WriteLog(LogInterface.LogLevel.DEBUG, "Insert catalog job to table", "Insert catalog job {0} to table {1} result, Etag:{2}, HttpStatusCode:{3},",
            //    catalogEntity.CatalogJobName, tableName, tableResult.Etag, tableResult.HttpStatusCode);
        }