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())); }
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()); }