added searcher properties

This commit is contained in:
Shannon Deminick
2013-02-27 06:53:18 +06:00
parent 6815092b62
commit 1157c11d89
3 changed files with 18 additions and 4 deletions

View File

@@ -32,8 +32,8 @@ namespace Umbraco.Web.WebServices
};
var props = TypeHelper.CachedDiscoverableProperties(indexer.GetType(), mustWrite: false)
//ignore these properties
.Where(x => !new[] { "IndexerData", "Description", "WorkingFolder" }.InvariantContains(x.Name))
.OrderBy(x => x.Name);
.Where(x => !new[] {"IndexerData", "Description", "WorkingFolder"}.InvariantContains(x.Name))
.OrderBy(x => x.Name);
foreach (var p in props)
{
indexerModel.ProviderProperties.Add(p.Name, p.GetValue(indexer, null).ToString());
@@ -57,6 +57,8 @@ namespace Umbraco.Web.WebServices
Name = searcher.Name
};
var props = TypeHelper.CachedDiscoverableProperties(searcher.GetType(), mustWrite: false)
//ignore these properties
.Where(x => !new[] {"Description"}.InvariantContains(x.Name))
.OrderBy(x => x.Name);
foreach (var p in props)
{