/// <summary> /// Deprecated Method for adding a new object to the CronProcessHistories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCronProcessHistories(CronProcessHistory cronProcessHistory) { base.AddObject("CronProcessHistories", cronProcessHistory); }
/// <summary> /// Create a new CronProcessHistory object. /// </summary> /// <param name="idCronProcessHistory">Initial value of the idCronProcessHistory property.</param> /// <param name="executeDate">Initial value of the ExecuteDate property.</param> /// <param name="runTime">Initial value of the RunTime property.</param> /// <param name="successful">Initial value of the Successful property.</param> public static CronProcessHistory CreateCronProcessHistory(global::System.Int32 idCronProcessHistory, global::System.String executeDate, global::System.DateTime runTime, global::System.Boolean successful) { CronProcessHistory cronProcessHistory = new CronProcessHistory(); cronProcessHistory.idCronProcessHistory = idCronProcessHistory; cronProcessHistory.ExecuteDate = executeDate; cronProcessHistory.RunTime = runTime; cronProcessHistory.Successful = successful; return cronProcessHistory; }
private CallContext CreateCronProcessHistory(string executeDate) { CronProcessHistory cronProcess = new CronProcessHistory(); CallContext resultContext = new CallContext(); resultContext.CurrentConsumerID = "1"; cronProcess.ExecuteDate = executeDate; cronProcess.RunTime = DateTime.Now; cronProcess.Successful = false; cronProcess.Exception = "Процеса е стартиран"; return resultContext = AdminClientRef.CronProcessHistorySave(cronProcess, resultContext); }