Ejemplo n.º 1
0
        static void ListPlugins(string path)
        {
            Console.WriteLine("Loading Input Plugins");
            if ((InputPlugins != null) && (InputPlugins.Count > 0))
            {
                Console.WriteLine(InputPlugins.Count.ToString() + " Input Plugins found");
                foreach (var value in InputPlugins)
                {
                    Console.WriteLine("Plugin Name: " + value.Key + " version: " + ASVersion.GetVersionString(value.Value.version) + " path: " + value.Value.Path);
                }
            }
            else
            {
                Console.WriteLine("0 Output Plugins found");
            }

            Console.WriteLine("Loading Output Plugins");
            if ((OutputPlugins != null) && (OutputPlugins.Count > 0))
            {
                Console.WriteLine(OutputPlugins.Count.ToString() + " Output Plugins found");
                foreach (var value in OutputPlugins)
                {
                    Console.WriteLine("Plugin Name: " + value.Key + " version: " + ASVersion.GetVersionString(value.Value.version) + " path: " + value.Value.Path);
                }
            }
            else
            {
                Console.WriteLine("0 Output Plugins found");
            }
        }
Ejemplo n.º 2
0
        public string GetInformationMessage(Int32 version)
        {
            bool IsWindows = System.Runtime.InteropServices.RuntimeInformation
                             .IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Windows);

            if (IsWindows)
            {
                return(string.Format(InformationMessagePrefix, ASVersion.GetVersionString(version)) +
                       InformationMessageWindows + InformationMessageSuffix);
            }
            else
            {
                return(string.Format(InformationMessagePrefix, ASVersion.GetVersionString(version)) +
                       InformationMessageSuffix);
            }
        }
Ejemplo n.º 3
0
 public string GetInformationMessage(Int32 version)
 {
     return(string.Format(InformationMessage, ASVersion.GetVersionString(version)));
 }