/// <summary> /// 初期化 /// </summary> private void Initialize() { var plugInApplicationAttribute = PcmHelper.GetAttribute <PlugInApplicationAttribute>(GetType()); Name = plugInApplicationAttribute == null?GetType().Name : plugInApplicationAttribute.Name; PlugIns = new List <IMogamiPlugIn <TPlugIn> >(); }
/// <summary> /// /// </summary> protected PlugIn() { Application = new PlugInApplication <TApp>(); //Get Name from PlugIn attribute. var thisPlugInType = GetType(); var plugInAttribute = PcmHelper.GetAttribute <PlugInAttribute>(thisPlugInType); Name = plugInAttribute == null ? thisPlugInType.Name : plugInAttribute.Name; Version = plugInAttribute == null ? "" : plugInAttribute.Version; }