Fixes: #U4-894 - moves the int Priority out of the IThumbnailProvider class as it is only metadata, moved

this into a new generic WeightedPluginAttribute which can be used for other resolves/objects that require a weight.
This commit is contained in:
Shannon Deminick
2012-09-25 11:06:32 +07:00
parent 449613de3e
commit 1bc3943f33
11 changed files with 302 additions and 294 deletions

View File

@@ -0,0 +1,19 @@
using System;
namespace Umbraco.Core.ObjectResolution
{
/// <summary>
/// Some many object resolvers require that the objects that they resolve have weights applied to them so that
/// the objects are returned in a sorted order, this attribute is used in these scenarios.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
internal class WeightedPluginAttribute : Attribute
{
public WeightedPluginAttribute(int weight)
{
Weight = weight;
}
public int Weight { get; private set; }
}
}