public void Configure(PluginConfiguration pluginConfiguration, out PluginInspector pluginInspector)
 {
     pluginInspector = new PluginInspector(this);
     try
     {
         ConfigurePlugin(pluginConfiguration, pluginInspector);
     }
     catch (Exception exception)
     {
         throw new PluginConfigurationException(new PluginInspectorExtrator(new List<PluginInspector> {pluginInspector}).ToString(), exception);
     }
 }
Example #2
0
 public void Configure(PluginConfiguration pluginConfiguration, out PluginInspector pluginInspector)
 {
     pluginInspector = new PluginInspector(this);
     try
     {
         ConfigurePlugin(pluginConfiguration, pluginInspector);
     }
     catch (Exception exception)
     {
         throw new PluginConfigurationException(new PluginInspectorExtrator(new List <PluginInspector> {
             pluginInspector
         }).ToString(), exception);
     }
 }
        private static string ExtractInfo(PluginInspector pluginInspector)
        {
            var buffer = new StringBuilder();
            var typeInfo = pluginInspector.GetPluginTypeInfo();
            buffer.AppendLine("Plugin Info");
            buffer.Append(typeInfo);

            var detailInfo = pluginInspector.GetPluginDetailInfo();
            if (detailInfo.Length > 0)
            {
                buffer.AppendLine("Configuration Details");
                buffer.Append(detailInfo);
            }
            buffer.AppendLine("=============================================================================================");
            return buffer.ToString();
        }
Example #4
0
        private static string ExtractInfo(PluginInspector pluginInspector)
        {
            var buffer   = new StringBuilder();
            var typeInfo = pluginInspector.GetPluginTypeInfo();

            buffer.AppendLine("Plugin Info");
            buffer.Append(typeInfo);

            var detailInfo = pluginInspector.GetPluginDetailInfo();

            if (detailInfo.Length > 0)
            {
                buffer.AppendLine("Configuration Details");
                buffer.Append(detailInfo);
            }
            buffer.AppendLine("=============================================================================================");
            return(buffer.ToString());
        }
 protected override void ConfigurePlugin(PluginConfiguration pluginConfiguration, PluginInspector pluginInspector)
 {
     pluginInspector.Log("Mensagem {0}","teste");
 }
 protected override void ConfigurePlugin(PluginConfiguration pluginConfiguration, PluginInspector pluginInspector)
 {
     throw new Exception("Something wrong happen");
 }
Example #7
0
 protected abstract void ConfigurePlugin(PluginConfiguration pluginConfiguration, PluginInspector pluginInspector);
 protected abstract void ConfigurePlugin(PluginConfiguration pluginConfiguration,  PluginInspector pluginInspector);