private IList <ServerPartition> LoadPartitions()
        {
            try
            {
                var xp        = new ServerPartitionTabsExtensionPoint();
                var extension = xp.CreateExtension() as IServerPartitionTabsExtension;

                if (extension != null)
                {
                    return(new List <ServerPartition>(extension.LoadServerPartitions()));
                }
            }
            catch (Exception ex)
            {
            }

            var defaultImpl = new DefaultServerPartitionTabsExtension();

            return(new List <ServerPartition>(defaultImpl.LoadServerPartitions()));
        }
示例#2
0
        private IList<ServerPartition> LoadPartitions()
        {
            try
            {
                var xp = new ServerPartitionTabsExtensionPoint();
                var extension = xp.CreateExtension() as IServerPartitionTabsExtension;

                if( extension!=null)
                {
                    return new List<ServerPartition>(extension.LoadServerPartitions());
                }
            }
            catch(Exception ex)
            {
                
            }

            var defaultImpl = new DefaultServerPartitionTabsExtension();
            return new List<ServerPartition>(defaultImpl.LoadServerPartitions());
        }