Beispiel #1
0
        static void Main()
        {
            WaitForEnso();

            EnsoExtensionServer server = new EnsoExtensionServer();

            EnsoExtensionsSection section = (EnsoExtensionsSection)ConfigurationManager.GetSection("ensoExtensions");
            foreach (EnsoExtensionElement element in section.EnsoExtensions)
            {
                try
                {
                    Type type = Type.GetType(element.Type);
                    IEnsoExtension extension = (IEnsoExtension)Activator.CreateInstance(type);
                    server.RegisterExtension(extension);
                }
                catch (Exception e)
                {
                    Debug.Fail(e.Message);
                }
            }

            Application.Run();
        }
Beispiel #2
0
        static void Main()
        {
            WaitForEnso();

            EnsoExtensionServer server = new EnsoExtensionServer();

            EnsoExtensionsSection section = (EnsoExtensionsSection)ConfigurationManager.GetSection("ensoExtensions");

            foreach (EnsoExtensionElement element in section.EnsoExtensions)
            {
                try
                {
                    Type           type      = Type.GetType(element.Type);
                    IEnsoExtension extension = (IEnsoExtension)Activator.CreateInstance(type);
                    server.RegisterExtension(extension);
                }
                catch (Exception e)
                {
                    Debug.Fail(e.Message);
                }
            }

            Application.Run();
        }