예제 #1
0
        private string[] GetReportPluginParts()
        {
            var reportPluginParts = ReportPlugin.Split(':');

            if (reportPluginParts.Length != 2)
            {
                throw new ArgumentException("The report plugin name for the ReportPlugin argument is not valid. The parameter must be in the format of Family:ReportPluginName.");
            }

            return(reportPluginParts);
        }
 private ReportPlugin DiscoverPlugin()
 {
     if (Object.ReferenceEquals(_plugin, null))
     {
         var p = plugins.Where(plugin => plugin.Metadata.Type.Equals(_pluginType)).DefaultIfEmpty(null).FirstOrDefault();
         _plugin = (Object.ReferenceEquals(p, null)) ? null : p.Value;
     }
     return _plugin;
 }