Exemplo n.º 1
0
        /// <summary>
        ///  read Log
        /// </summary>
        /// <param name="logDateTime"></param>
        /// <param name="logId"></param>
        /// <param name="fromLineNum"></param>
        /// <returns></returns>
        private ReturnT Log(long logDateTime, long logId, int fromLineNum)
        {
            var ret = ReturnT.Success(null);

            ret.Content = this._jobLogger.ReadLog(logDateTime, logId, fromLineNum);
            return(ret);
        }
Exemplo n.º 2
0
 private ReturnT Kill(int jobId)
 {
     return(this._jobDispatcher.TryRemoveJobTask(jobId) ?
            ReturnT.SUCCESS
         :
            ReturnT.Success("job thread already killed."));
 }
Exemplo n.º 3
0
        /// <summary>
        ///  read Log
        /// </summary>
        /// <returns></returns>
        private ReturnT Log(LogRequest req)
        {
            if (req == null)
            {
                return(ReturnT.Failed("Log Error"));
            }
            var ret = ReturnT.Success(null);

            ret.Content = this._jobLogger.ReadLog(req.LogDateTime, req.LogId, req.FromLineNum);
            return(ret);
        }
Exemplo n.º 4
0
 private ReturnT Kill(KillRequest req)
 {
     if (req == null)
     {
         return(ReturnT.Failed("Kill Error"));
     }
     return(this._jobDispatcher.TryRemoveJobTask(req.JobId) ?
            ReturnT.SUCCESS
         :
            ReturnT.Success("job thread already killed."));
 }