Beispiel #1
0
        protected override void Stopped(RESULT status, string message)
        {
            if ((int)status < (int)RESULT.NONE)
            {
                this.logger.Write(TYPE.ERROR, message);
            }

            if (accessor != null)
            {
                accessor.Dispose();
            }
            this.logger.Write(TYPE.INFO, "stopped.");
        }
Beispiel #2
0
        protected override void Stopped(RESULT status, string message)
        {
            if (accessor != null)
            {
                accessor.Dispose();
            }

            if (FProgress != null)
            {
                FProgress(this.id, status);
            }

            this.logger.Write(TYPE.INFO, string.Format(Messager.MSG_TASK_STOP, this.id));
            if (status != RESULT.OK)
            {
                this.logger.Write(TYPE.INFO, string.Format("(RESULT={0}):{1}", status.ToString(), message));
            }
        }
Beispiel #3
0
 /// <summary>
 /// Disposes the current log file.
 /// </summary>
 public void Dispose()
 {
     mDatabaseAccessor?.Dispose();
     mDatabaseAccessor = null;
 }