1、类QueueMessage
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CHEER.Common
{
public class QueueMessage
{
public string DeliveryTag { get; set; }
public string ConsumerTag { get; set; }
public Constant Type { get; set; }
public string Message { get; set; }
}
}
2、枚举Constant
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CHEER.Common
{
public enum Constant
{
ProcessStopRun
}
public class TimeConstant
{
public static readonly int ProcessDevice = int.Parse(System.Configuration.ConfigurationManager.AppSettings["ProcessDeviceMinutes"]) * 60;
}
}
3、类AsyncThreadHelper
using