using CPF; using System; using System.Collections.Generic; using System.Text; namespace ConsoleApp1 { public class IPlugin : CpfObject, IDisposable { /// /// 当自动执行时,此属性指示可重试次数 /// public int MaxTryCount { get { return GetValue(); } set { SetValue(value); } } ///// ///// 插件状态 ///// //public PluginState State { get { return GetValue(); } set { SetValue(value); } } /// /// 最后消息 /// public string LastMessage { get { return GetValue(); } set { SetValue(value); } } /// /// 插件名 /// public string PluginName { get { return GetValue(); } set { SetValue(value); } } /// /// 关闭插件 /// public virtual void Close() { } } public class TestPlugin : IPlugin { public override void Close() { base.Close(); } } }