﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading;

namespace flowgear.Logging.Monitoring
{

    public class MonitoredThread
    {
        /// <summary>
        /// Points to the monitored thread
        /// </summary>
        public WeakReference<Thread> ThreadWeakReference
        {
            get; set;
        }

        /// <summary>
        /// Identifier for the instance of the thread (Can be associated after ResourceMonitor.AddMonitoredThread is called using ResourceMonitor.SetMonitoredThreadInstanceKey)
        /// </summary>
        public string Tag
        {
            get; set;
        }

        /// <summary>
        /// Time at which the thread was first added for monitoring
        /// </summary>
        public DateTime ThreadAddTime
        {
            get; set;
        }


    }
}
