StephaneLenclud@210: // StephaneLenclud@210: StephaneLenclud@210: StephaneLenclud@210: using System; StephaneLenclud@210: using System.Runtime.Serialization; StephaneLenclud@210: using System.Threading; StephaneLenclud@210: StephaneLenclud@210: namespace SharpLib.Ear StephaneLenclud@210: { StephaneLenclud@210: [DataContract] StephaneLenclud@210: public abstract class Action: IComparable StephaneLenclud@210: { StephaneLenclud@210: public abstract void Execute(); StephaneLenclud@210: StephaneLenclud@210: public int CompareTo(object obj) StephaneLenclud@210: { StephaneLenclud@210: //Sort by action name StephaneLenclud@210: return Utils.Reflection.GetAttribute(GetType()).Name.CompareTo(obj.GetType()); StephaneLenclud@210: } StephaneLenclud@210: } StephaneLenclud@210: StephaneLenclud@210: StephaneLenclud@210: }