Binboo.Core.Application.WithPluginsFrom C# (CSharp) Method

WithPluginsFrom() public static method

public static WithPluginsFrom ( System.ComponentModel.Composition.Primitives.ComposablePartCatalog catalog ) : Application
catalog System.ComponentModel.Composition.Primitives.ComposablePartCatalog
return Application
        public static Application WithPluginsFrom(ComposablePartCatalog catalog)
        {
            try
            {
                return new Application(catalog);
            }
            catch(ReflectionTypeLoadException rtle)
            {
                GetLogger().ErrorFormat("Could not start application, exiting. Error: {0}", rtle.LoaderExceptions);
                throw;
            }
            catch(Exception ex)
            {
                GetLogger().ErrorFormat("Could not start application, exiting. Error: {0}", ex);
                throw;
            }
        }